Class AlternativeTrigger

All Implemented Interfaces:
PointerInterface

public class AlternativeTrigger extends ShortcutTrigger
A `GtkShortcutTrigger` that combines two triggers.

The `GtkAlternativeTrigger` triggers when either of two trigger.

This can be cascaded to combine more than two triggers.

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

  • Constructor Details

    • AlternativeTrigger

      public AlternativeTrigger(PointerContainer pointer)
    • AlternativeTrigger

      public AlternativeTrigger(@Nonnull ShortcutTrigger first, @Nonnull ShortcutTrigger second)
      Creates a `GtkShortcutTrigger` that will trigger whenever
      either of the two given triggers gets triggered.

      Note that nesting is allowed, so if you want more than two
      alternative, create a new alternative trigger for each option.
      Parameters:
      first - The first trigger that may trigger
      second - The second trigger that may trigger
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getFirst

      public ShortcutTrigger getFirst()
      Gets the first of the two alternative triggers that may
      trigger @self.

      [method@Gtk.AlternativeTrigger.get_second] will return
      the other one.
      Returns:
      the first alternative trigger
    • getSecond

      public ShortcutTrigger getSecond()
      Gets the second of the two alternative triggers that may
      trigger @self.

      [method@Gtk.AlternativeTrigger.get_first] will return
      the other one.
      Returns:
      the second alternative trigger
    • 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()