Package: gtk

Class gtk:enum-list

Superclasses

gio:list-model, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

enum-type
The enum-type property of type g:gtype (Read)
The type of the enum represented by the model.
item-type
The item-type property of type g:gtype (Read)
The type of the items in the enum list.
n-items
The n-items property of type :uint (Read)
The number of items in the enum list.

Details

The g:list-model object representing values of a given enum. The gtk:enum-list object contains objects of type gtk:enum-list-item object.

Since 4.24

Examples

A simple way to use a gtk:enum-list object is to populate a gtk:drop-down widget using the short name (or nick) of the values of an enumeration type:
;; Dropdown using a GtkEnumList
(let* ((model (gtk:enum-list-new "GtkLicense"))
       (expr (gtk:property-expression-new "GtkEnumListItem" nil "nick"))
       (button (gtk:drop-down-new model expr)))
  ... )    
 

Inherited Slot Access Functions

See also

2026-10-31