TreeNode

Constructors

this
this(DzlTreeNode* dzlTreeNode, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #DzlTreeNode instance. This is handy for situations where you do not want to subclass #DzlTreeNode.

Members

Functions

addEmblem
void addEmblem(string emblemName)

Adds an emplem to be rendered on top of the node.

append
void append(TreeNode child)

Appends @child to the list of children owned by @node.

clearEmblems
void clearEmblems()

Removes all emblems from @self.

collapse
void collapse()
expand
bool expand(bool expandAncestors)
getArea
void getArea(GdkRectangle* area)
getChildrenPossible
bool getChildrenPossible()
getExpanded
bool getExpanded()
getForegroundRgba
RGBA getForegroundRgba()

Gets the foreground-rgba to use for row text.

getGicon
IconIF getGicon()

Fetch the GIcon, re-render if necessary

getIconName
string getIconName()

Fetches the icon-name of the icon to display, or NULL for no icon.

getItem
ObjectG getItem()

Gets a #GObject for the node, if one was set.

getIter
bool getIter(TreeIter iter)
getParent
TreeNode getParent()

Retrieves the parent #DzlTreeNode for @node.

getPath
TreePath getPath()

Gets a #GtkTreePath for @node.

getResetOnCollapse
bool getResetOnCollapse()
getStruct
void* getStruct()

the main Gtk struct as a void*

getText
string getText()
getTree
Tree getTree()

Fetches the #DzlTree instance that owns the node.

getTreeNodeStruct
DzlTreeNode* getTreeNodeStruct(bool transferOwnership = false)

Get the main Gtk struct

getUseDimLabel
bool getUseDimLabel()
getUseMarkup
bool getUseMarkup()
hasEmblem
bool hasEmblem(string emblemName)

Checks to see if @emblem_name has been added to the #DzlTreeNode.

insert
void insert(TreeNode child, uint position)

Inserts @child as a child of @self at @position.

insertSorted
void insertSorted(TreeNode child, DzlTreeNodeCompareFunc compareFunc, void* userData)

Inserts a @child as a child of @node, sorting it among the other children.

invalidate
void invalidate()
isRoot
bool isRoot()
nChildren
uint nChildren()
nthChild
TreeNode nthChild(uint nth)

Gets the @nth child of @self or %NULL if it does not exist.

prepend
void prepend(TreeNode child)

Prepends @child to the list of children owned by @node.

rebuild
void rebuild()

Rebuilds a node, without invalidating children nodes. If you want to ensure that children are also rebuilt, use dzl_tree_node_invalidate().

remove
void remove(TreeNode child)

Removes @child from the list of children owned by @node.

removeEmblem
void removeEmblem(string emblemName)
select
void select()
setChildrenPossible
void setChildrenPossible(bool childrenPossible)

If the node has not yet been built, setting this to %TRUE will add a dummy child node. This dummy node will be removed when when the node is built by the registered #DzlTreeBuilder instances.

setEmblems
void setEmblems(string emblems)
setForegroundRgba
void setForegroundRgba(RGBA foregroundRgba)

Sets the foreground-rgba to be used by the row text.

setGicon
void setGicon(IconIF icon)
setIconName
void setIconName(string iconName)

Sets the icon name of the node. This is displayed in the pixbuf cell of the DzlTree.

setItem
void setItem(ObjectG item)

An optional object to associate with the node. This is handy to save needing to subclass the #DzlTreeNode class.

setResetOnCollapse
void setResetOnCollapse(bool resetOnCollapse)
setText
void setText(string text)

Sets the text of the node. This is displayed in the text cell of the DzlTree.

setUseDimLabel
void setUseDimLabel(bool useDimLabel)
setUseMarkup
void setUseMarkup(bool useMarkup)
showPopover
void showPopover(Popover popover)

Static functions

getType
GType getType()

Variables

dzlTreeNode
DzlTreeNode* dzlTreeNode;

the main Gtk struct

Meta