: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` :Constructors: :: EnumListModel(**properties) new(enum_type:GType) -> Adw.EnumListModel Constructors ------------ .. rst-class:: interim-class .. class:: EnumListModel :no-index: .. classmethod:: new(enum_type: type) -> ~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() -> type Gets the type of the enum represented by ``self``. Properties ---------- .. rst-class:: interim-class .. class:: EnumListModel :no-index: .. attribute:: props.enum_type :type: type The type of the enum represented by the model.