Class ActivateAction

All Implemented Interfaces:
Proxy

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

Activates a widget.

Widgets are activated by calling Widget.activate.

  • Constructor Details

    • ActivateAction

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

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

    • getType

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

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

      protected ActivateAction 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 ActivateAction get()

      Gets the activate action.

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

      Returns:
      The activate action
    • builder

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