Class MnemonicTrigger

All Implemented Interfaces:
PointerInterface

public class MnemonicTrigger extends ShortcutTrigger
A `GtkShortcutTrigger` that triggers when a specific mnemonic is pressed.

Mnemonics require a *mnemonic modifier* (typically <kbd>Alt</kbd>) to be
pressed together with the mnemonic key.

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

  • Constructor Details

    • MnemonicTrigger

      public MnemonicTrigger(PointerContainer pointer)
    • MnemonicTrigger

      public MnemonicTrigger(int keyval)
      Creates a `GtkShortcutTrigger` that will trigger whenever the key with
      the given @keyval is pressed and mnemonics have been activated.

      Mnemonics are activated by calling code when a key event with the right
      modifiers is detected.
      Parameters:
      keyval - The keyval to trigger for
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getKeyval

      public int getKeyval()
      Gets the keyval that must be pressed to succeed triggering @self.
      Returns:
      the keyval
    • 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()