Class MnemonicAction

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class MnemonicAction extends ShortcutAction

Activates a widget with a mnemonic.

This means that Widget.mnemonicActivate(boolean) is called.

  • Constructor Details

    • MnemonicAction

      public MnemonicAction(MemorySegment address)
      Create a MnemonicAction instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • MnemonicAction

      public MnemonicAction()
      Create a new MnemonicAction.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the MnemonicAction class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected MnemonicAction asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class ShortcutAction
      Returns:
      the instance as if it were its parent type
    • get

      public static MnemonicAction get()

      Gets the mnemonic action.

      This is an action that calls gtk_widget_mnemonic_activate() on the given widget upon activation.

      Returns:
      The mnemonic action
    • builder

      public static MnemonicAction.Builder<? extends MnemonicAction.Builder> builder()
      A MnemonicAction.Builder object constructs a MnemonicAction with the specified properties. Use the various set...() methods to set properties, and finish construction with MnemonicAction.Builder.build().
      Returns:
      the builder object