TreeNode
Object Hierarchy:
Description:
[ CCode ( type_id = "dzl_tree_node_get_type ()" ) ]
public class TreeNode : InitiallyUnowned
Content:
Properties:
- public bool children_possible { get; set; }
This property allows for more lazy loading of nodes.
- public string expanded_icon_name { owned get; set; }
- public Icon gicon { get; set; }
The cached GIcon to display.
- public string icon_name { get; set; }
An icon-name to display on the row.
- public Object item { get; set; }
An optional Object to associate with the
node.
- public TreeNode parent { get; }
The parent of the node.
- public bool reset_on_collapse { get; set; }
The "reset-on-collapse" property denotes that all children should be
removed from the node when it's row is collapsed.
- public string text { get; set; }
Text to display on the tree node.
- public Tree tree { owned get; set; }
The tree the node belongs to.
- public bool use_dim_label { get; set; }
- public bool use_markup { get; set; }
If the "text" property includes GMarkup
.
Creation methods:
Methods:
- public void add_emblem (string emblem_name)
Adds an emplem to be rendered on top of the node.
- public void append (TreeNode child)
Appends child
to the list of children owned by
this.
- public void clear_emblems ()
Removes all emblems from self
.
- public void collapse ()
- public bool expand (bool expand_ancestors)
- public void get_area (Rectangle area)
- public bool get_children_possible ()
- public bool get_expanded ()
- public unowned RGBA? get_foreground_rgba ()
Gets the foreground-rgba to use for row text.
- public unowned Icon get_gicon ()
Fetch the GIcon, re-render if necessary
- public unowned string get_icon_name ()
Fetches the icon-name of the icon to display, or NULL for no icon.
- public unowned Object get_item ()
Gets a Object for the node, if one was set.
- public bool get_iter (TreeIter iter)
- public unowned TreeNode get_parent ()
Retrieves the parent TreeNode for
this.
- public TreePath? get_path ()
Gets a TreePath for
this.
- public bool get_reset_on_collapse ()
- public unowned string get_text ()
- public unowned Tree get_tree ()
Fetches the Tree instance
that owns the node.
- public bool get_use_dim_label ()
- public bool get_use_markup ()
- public bool has_emblem (string emblem_name)
Checks to see if emblem_name
has been added to the
TreeNode.
- public void insert (TreeNode child, uint position)
Inserts child
as a child of
this at position
.
- public void insert_sorted (TreeNode child, TreeNodeCompareFunc compare_func)
Inserts a child
as a child of
this, sorting it among the other children.
- public void invalidate ()
- public bool is_root ()
- public uint n_children ()
- public TreeNode? nth_child (uint nth)
Gets the nth
child of this
or null if it does not exist.
- public void prepend (TreeNode child)
Prepends child
to the list of children owned by
this.
- public void rebuild ()
Rebuilds a node, without invalidating children nodes.
- public void remove (TreeNode child)
Removes child
from the list of children owned by
this.
- public void remove_emblem (string emblem_name)
- public void select ()
- public void set_children_possible (bool children_possible)
If the node has not yet been built, setting this to
true will add a dummy child node.
- public void set_emblems (string emblems)
- public void set_foreground_rgba (RGBA? foreground_rgba)
Sets the foreground-rgba to be used by the row text.
- public void set_gicon (Icon icon)
- public void set_icon_name (string? icon_name)
Sets the icon name of the node.
- public void set_item (Object item)
An optional object to associate with the node.
- public void set_reset_on_collapse (bool reset_on_collapse)
- public void set_text (string? text)
Sets the text of the node.
- public void set_use_dim_label (bool use_dim_label)
- public void set_use_markup (bool use_markup)
- public void show_popover (Popover popover)
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