Class EnumListItem

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public final class EnumListItem extends GObject
AdwEnumListItem is the type of items in a EnumListModel.
  • Constructor Details

    • EnumListItem

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

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

    • getType

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

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

      protected EnumListItem 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 GObject
      Returns:
      the instance as if it were its parent type
    • getName

      public String getName()
      Gets the enum value name.
      Returns:
      the enum value name
    • getNick

      public String getNick()
      Gets the enum value nick.
      Returns:
      the enum value nick
    • getValue

      public int getValue()
      Gets the enum value.
      Returns:
      the enum value
    • builder

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