Package: gtk

Class gtk:slice-list-model

Superclasses

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

Documented Subclasses

None

Direct Slots

item-type
The item-type property of type g:type-t (Read)
The type of items. Since 4.8
model
The model property of type g:list-model (Read / Write)
The child model to take slice from.
n-items
The n-items property of type :uint (Read / Write)
The number of items.
Default value: 0
offset
The offset property of type :int (Read / Write)
The offset of slice.
Default value: 0
size
The size property of type :uint (Read / Write)
The maximum size of slice.
Default value: 10

Details

The gtk:slice-list-model object is a list model that takes a list model and presents a slice of that model. This is useful when implementing paging by setting the size to the number of elements per page and updating the offset whenever a different page is opened. The gtk:slice-list-model object passes through sections from the underlying model.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-12-15