TreeListRow

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

GtkTreeListRow is used by GtkTreeListModel to represent items.

It allows navigating the model as a tree and modify the state of rows.

GtkTreeListRow instances are created by a GtkTreeListModel only when the property@Gtk.TreeListModel:passthrough property is not set.

There are various support objects that can make use of GtkTreeListRow objects, such as the class@Gtk.TreeExpander widget that allows displaying an icon to expand or collapse a row or class@Gtk.TreeListRowSorter that makes it possible to sort trees properly.

Skipped during bindings generation

  • method expandable: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val children: <Error class: unknown class>?

The model holding the row's children.

Link copied to clipboard
open val depth: <Error class: unknown class>

The depth in the tree of this row.

Link copied to clipboard
open var expanded: Boolean

If this row is currently expanded.

Link copied to clipboard
val gtkTreeListRowPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val item: <Error class: unknown class>?

The item held in this row.

Functions

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

If the row is expanded, gets the model holding the children of @self.

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

If @self is not expanded or @position is greater than the number of children, null is returned.

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

Gets the depth of this row.

Link copied to clipboard
open fun getExpanded(): Boolean

Gets if a row is currently expanded.

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

Gets the item corresponding to this row,

Link copied to clipboard
open fun getParent(): TreeListRow?

Gets the row representing the parent for @self.

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

Returns the position in the GtkTreeListModel that @self occupies at the moment.

Link copied to clipboard
open fun isExpandable(): Boolean

Checks if a row can be expanded.

Link copied to clipboard
open fun setExpanded(expanded: Boolean)

Expands or collapses a row.