TreeListRow
Object Hierarchy:
Gtk.TreeListRow
Gtk.TreeListRow
Gtk.TreeListRow
GLib.Object
GLib.Object
GLib.Object->Gtk.TreeListRow
Description:
[
CCode ( type_id =
"gtk_tree_list_row_get_type ()" ) ]
public sealed class TreeListRow :
Object
The type of item used by `GtkTreeListModel`.
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.
Content:
Properties:
public ListModel children { get ; }
The model holding the row's children.
public uint depth { get ; }
The depth in the tree of this row.
public bool expandable { get ; }
If this row can ever be expanded.
public bool expanded { get ; set ; }
If this row is currently expanded.
public Object item { owned get ; }
The item held in this row.
Creation methods:
Methods:
public TreeListRow ? get_child_row (uint position)
If this is not expanded or position
is greater than the number of children, null is returned.
public unowned ListModel ? get_children ()
If the row is expanded, gets the model holding the children of
this .
public uint get_depth ()
Gets the depth of this row.
public bool get_expanded ()
Gets if a row is currently expanded.
public Object ? get_item ()
Gets the item corresponding to this row,
public TreeListRow ? get_parent ()
Gets the row representing the parent for this
.
public uint get_position ()
Returns the position in the `GtkTreeListModel` that
this occupies at the moment.
public bool is_expandable ()
Checks if a row can be expanded.
public void set_expanded (bool expanded)
Expands or collapses a row.
Inherited Members:
All known members inherited from class GLib.Object