Class OptionMenuItem

java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.OptionMenuItem
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class OptionMenuItem extends ProxyInstance

One item of a WebKitOptionMenu.

The WebKitOptionMenu is composed of WebKitOptionMenuItems. A WebKitOptionMenuItem always has a label and can contain a tooltip text. You can use the WebKitOptionMenuItem of a WebKitOptionMenu to build your own menus.

Since:
2.18
  • Constructor Details

    • OptionMenuItem

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

    • getType

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

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

      public OptionMenuItem copy()
      Make a copy of the WebKitOptionMenuItem.
      Returns:
      A copy of passed in WebKitOptionMenuItem
      Since:
      2.18
    • free

      public void free()
      Free the WebKitOptionMenuItem.
      Since:
      2.18
    • getLabel

      public String getLabel()
      Get the label of a WebKitOptionMenuItem.
      Returns:
      The label of item.
      Since:
      2.18
    • getTooltip

      public String getTooltip()
      Get the tooltip of a WebKitOptionMenuItem.
      Returns:
      The tooltip of item, or null.
      Since:
      2.18
    • isEnabled

      public boolean isEnabled()
      Whether a WebKitOptionMenuItem is enabled.
      Returns:
      true if the this OptionMenuItem is enabled or false otherwise.
      Since:
      2.18
    • isGroupChild

      public boolean isGroupChild()
      Whether a WebKitOptionMenuItem is a group child.
      Returns:
      true if the this OptionMenuItem is a group child or false otherwise.
      Since:
      2.18
    • isGroupLabel

      public boolean isGroupLabel()
      Whether a WebKitOptionMenuItem is a group label.
      Returns:
      true if the this OptionMenuItem is a group label or false otherwise.
      Since:
      2.18
    • isSelected

      public boolean isSelected()
      Whether a WebKitOptionMenuItem is the currently selected one.
      Returns:
      true if the this OptionMenuItem is selected or false otherwise.
      Since:
      2.18