Class EnumListModel

All Implemented Interfaces:
PointerInterface

public class EnumListModel extends Object
A [iface@Gio.ListModel] representing values of a given enum.

`AdwEnumListModel` contains objects of type [class@EnumListItem].

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.EnumListModel.html

  • Constructor Details

    • EnumListModel

      public EnumListModel(PointerContainer pointer)
    • EnumListModel

      public EnumListModel(long enum_type)
      Creates a new `AdwEnumListModel` for @enum_type.
      Parameters:
      enum_type - the type of the enum to construct the model from
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • findPosition

      public int findPosition(int value)
      Finds the position of a given enum value in @self.
      Parameters:
      value - an enum value
      Returns:
    • getEnumType

      public long getEnumType()
      Gets the type of the enum represented by @self.
      Returns:
      the enum type
    • asListModel

      public ListModel asListModel()
      Implements interface ListModel. Call this to get access to interface functions.
      Returns:
      ListModel
    • 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()