TreeListModel

open class TreeListModel(pointer: <Error class: unknown class><<Error class: unknown class>>)

GtkTreeListModel is a list model that can create child models on demand.

Constructors

Link copied to clipboard
constructor(root: <Error class: unknown class>, passthrough: Boolean, autoexpand: Boolean, createFunc: TreeListModelCreateModelFunc)

Creates a new empty GtkTreeListModel displaying @root with all rows collapsed.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If all rows should be expanded by default.

Link copied to clipboard
open val gioListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkTreeListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val model: <Error class: unknown class>

The root model displayed.

Link copied to clipboard

Gets whether the model is in passthrough mode.

Functions

Link copied to clipboard

Gets whether the model is set to automatically expand new rows that get added.

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

Gets the row item corresponding to the child at index @position for

Link copied to clipboard
open fun getModel(): <Error class: unknown class>

Gets the root model that @self was created with.

Link copied to clipboard

Gets whether the model is passing through original row items.

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

Gets the row object for the given row.

Link copied to clipboard
open fun setAutoexpand(autoexpand: Boolean)

Sets whether the model should autoexpand.