FlattenListModel

open class FlattenListModel(pointer: <Error class: unknown class><<Error class: unknown class>>) : SectionModel

GtkFlattenListModel is a list model that concatenates other list models.

GtkFlattenListModel takes a list model containing list models, and flattens it into a single model. Each list model becomes a section in the single model.

Skipped during bindings generation

  • method item-type: Property has no getter nor setter

  • method n-items: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(model: <Error class: unknown class>? = null)

Creates a new GtkFlattenListModel that flattens @list.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val gioListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkFlattenListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkSectionModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var model: <Error class: unknown class>?

The model being flattened.

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 getModel(): <Error class: unknown class>?

Gets the model set via gtk_flatten_list_model_set_model().

Link copied to clipboard
open fun getModelForItem(position: <Error class: unknown class>): <Error class: unknown class>?

Returns the model containing the item at the given position.

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.

Link copied to clipboard
open fun setModel(model: <Error class: unknown class>? = null)

Sets a new model to be flattened.