Class SignalAction

All Implemented Interfaces:
PointerInterface

public class SignalAction extends ShortcutAction
A `GtkShortcut`Action that emits a signal.

Signals that are used in this way are referred to as keybinding signals,
and they are expected to be defined with the %G_SIGNAL_ACTION flag.

https://docs.gtk.org/gtk4/class.SignalAction.html

  • Constructor Details

    • SignalAction

      public SignalAction(PointerContainer pointer)
    • SignalAction

      public SignalAction(@Nonnull Str signal_name)
      Creates an action that when activated, emits the given action signal
      on the provided widget.

      It will also unpack the args into arguments passed to the signal.
      Parameters:
      signal_name - name of the signal to emit
    • SignalAction

      public SignalAction(String signal_name)
      Creates an action that when activated, emits the given action signal
      on the provided widget.

      It will also unpack the args into arguments passed to the signal.
      Parameters:
      signal_name - name of the signal to emit
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getSignalName

      public Str getSignalName()
      Returns the name of the signal that will be emitted.
      Returns:
      the name of the signal to emit
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()