1.27 <AdwEnumListModel>

Class: <AdwEnumListModel>

It derives from <GObject>.

A <GListModel> representing values of a given enum.

<AdwEnumListModel> contains objects of type EnumListItem.

Properties

Property: enum-list-model:enum-type self

The type of the enum represented by the model.

Its value is a class, or a GType number.

It can only be set when the object is made, with #:enum-type.

Property: enum-list-model:item-type self

The type of the items. See list-model:get-item-type.

Its value is a class, or a GType number.

It is read only.

Property: enum-list-model:n-items self

The number of items. See list-model:get-n-items.

Its value is an unsigned 32-bit integer.

It is read only.

Procedures

Method: enum-list-model:find-position self value ⇒ %return
Method: find-position self value ⇒ %return

Finds the position of a given enum value in self.

If the value is not found, Gtk.INVALID_LIST_POSITION is returned.

self

Passed: a <AdwEnumListModel>.

value

Passed: a 32-bit integer.

an enum value

%return

Returned: an unsigned 32-bit integer.

the position of the value

Method: enum-list-model:get-enum-type self ⇒ %return
Method: get-enum-type self ⇒ %return

Gets the type of the enum represented by self.

self

Passed: a <AdwEnumListModel>.

%return

Returned: a class, or a GType number.

the enum type

Procedure: enum-list-model:new enum-type ⇒ %return

Creates a new <AdwEnumListModel> for enum-type.

enum-type

Passed: a class, or a GType number.

the type of the enum to construct the model from

%return

Returned: a <AdwEnumListModel>.

the newly created <AdwEnumListModel>