Adw.EnumListModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Adw.EnumListModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A [iface`Gio`.ListModel] representing values of a given enum.
AdwEnumListModel
contains objects of type [class`EnumListItem`].- classmethod new(enum_type)¶
- Parameters:
enum_type (
GObject.GType
) – the type of the enum to construct the model from- Returns:
the newly created
AdwEnumListModel
- Return type:
Creates a new
AdwEnumListModel
for enum_type.
- find_position(value)¶
-
Finds the position of a given enum value in self.
If the value is not found,
GTK_INVALID_LIST_POSITION
is returned.
- get_enum_type()¶
- Returns:
the enum type
- Return type:
Gets the type of the enum represented by self.
Property Details¶
- Adw.EnumListModel.props.enum_type¶
- Name:
enum-type
- Type:
- Default Value:
<GType GEnum>
- Flags:
The type of the enum represented by the model.