:right-sidebar: True EnumListModel =================================================================== .. currentmodule:: gi.repository.Adw .. class:: EnumListModel(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.ListModel` A :obj:`~gi.repository.Gio.ListModel` representing values of a given enum. ``AdwEnumListModel`` contains objects of type :obj:`~gi.repository.Adw.EnumListItem`\. Constructors ------------ .. rst-class:: interim-class .. class:: EnumListModel :no-index: .. classmethod:: new(enum_type: ~gobject.GType) -> ~gi.repository.Adw.EnumListModel Creates a new ``AdwEnumListModel`` for ``enum_type``\. :param enum_type: the type of the enum to construct the model from Methods ------- .. rst-class:: interim-class .. class:: EnumListModel :no-index: .. method:: find_position(value: int) -> int Finds the position of a given enum value in ``self``\. If the value is not found, ``GTK_INVALID_LIST_POSITION`` is returned. :param value: an enum value .. method:: get_enum_type() -> ~gobject.GType Gets the type of the enum represented by ``self``\. Properties ---------- .. rst-class:: interim-class .. class:: EnumListModel :no-index: .. attribute:: props.enum_type :type: ~gobject.GType The type of the None singleton.