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 class TreeListRow : Object
`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 [[email protected] :passthrough] property is not
set.
There are various support objects that can make use of `GtkTreeListRow` objects, such as the [[email protected] ] widget that allows
displaying an icon to expand or collapse a row or [[email protected] ] 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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref