SliceListModel
open class SliceListModel(pointer: <Error class: unknown class><<Error class: unknown class>>) : SectionModel
GtkSliceListModel
is a list model that presents a slice of another 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.
GtkSliceListModel
passes through sections from the underlying model.
Skipped during bindings generation
method
item-type
: Property has no getter nor settermethod
n-items
: Property has no getter nor setter
Constructors
Properties
Link copied to clipboard
Link copied to clipboard
open override val gtkSectionModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
Functions
Link copied to clipboard
open fun connectSectionsChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, <Error class: unknown class>) -> Unit): <Error class: unknown class>
Emitted when the start-of-section state of some of the items in @model changes.
Link copied to clipboard
open fun sectionsChanged(position: <Error class: unknown class>, nItems: <Error class: unknown class>)
This function emits the signal@Gtk.SectionModel::sections-changed signal to notify about changes to sections.