Class KeyvalTrigger

All Implemented Interfaces:
PointerInterface

public class KeyvalTrigger extends ShortcutTrigger
A `GtkShortcutTrigger` that triggers when a specific keyval and modifiers are pressed.

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

  • Constructor Details

    • KeyvalTrigger

      public KeyvalTrigger(PointerContainer pointer)
    • KeyvalTrigger

      public KeyvalTrigger(int keyval, int modifiers)
      Creates a `GtkShortcutTrigger` that will trigger whenever
      the key with the given @keyval and @modifiers is pressed.
      Parameters:
      keyval - The keyval to trigger for
      modifiers - the modifiers that need to be present
  • 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
    • getModifiers

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