Interface WidgetClass.OnShortcutFunc

Enclosing class:
WidgetClass
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface WidgetClass.OnShortcutFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onShortcutFunc(CallbackHandler __self, Widget widget, Variant args, Pointer user_data)
    Prototype for shortcuts based on user callbacks.
  • Method Details

    • onShortcutFunc

      boolean onShortcutFunc(CallbackHandler __self, @Nonnull Widget widget, @Nullable Variant args, @Nullable Pointer user_data)
      Prototype for shortcuts based on user callbacks.
      Parameters:
      widget - The widget passed to the activation
      args - The arguments passed to the activation
      user_data - The user data provided when activating the action
      Returns:
      %TRUE if the action was successful.