Tree

Constructors

this
this(DzlTree* dzlTree, bool ownedRef = false)

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

Members

Functions

addBuilder
void addBuilder(TreeBuilder builder)

Add a builder to the tree.

addOnAction
gulong addOnAction(void delegate(string, string, string, Tree) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnPopulatePopup
gulong addOnPopulatePopup(void delegate(Widget, Tree) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
expandToNode
void expandToNode(TreeNode node)
findChildNode
TreeNode findChildNode(TreeNode node, DzlTreeFindFunc findFunc, void* userData)

Searches through the direct children of @node for a matching child. @find_func should return %TRUE if the child matches, otherwise %FALSE.

findCustom
TreeNode findCustom(GEqualFunc equalFunc, void* key)

Walks the entire tree looking for the first item that matches given @equal_func and @key.

findItem
TreeNode findItem(ObjectG item)

Finds a #DzlTreeNode with an item property matching @item.

getContextMenu
MenuModel getContextMenu()
getRoot
TreeNode getRoot()

Retrieves the root node of the tree. The root node is not a visible node in the self, but a placeholder for all other builders to build upon.

getSelected
TreeNode getSelected()

Gets the currently selected node in the tree.

getShowIcons
bool getShowIcons()
getStruct
void* getStruct()

the main Gtk struct as a void*

getTreeStruct
DzlTree* getTreeStruct(bool transferOwnership = false)

Get the main Gtk struct

rebuild
void rebuild()
removeBuilder
void removeBuilder(TreeBuilder builder)

Removes a builder from the tree.

scrollToNode
void scrollToNode(TreeNode node)
setContextMenu
void setContextMenu(MenuModel contextMenu)
setFilter
void setFilter(DzlTreeFilterFunc filterFunc, void* filterData, GDestroyNotify filterDataDestroy)

Sets the filter function to be used to determine visability of a tree node.

setRoot
void setRoot(TreeNode node)

Sets the root node of the #DzlTree widget. This is used to build the items within the treeview. The item itself will not be added to the self, but the direct children will be.

setShowIcons
void setShowIcons(bool showIcons)
unselectAll
void unselectAll()

Unselects the currently selected node in the tree.

Static functions

getType
GType getType()

Variables

dzlTree
DzlTree* dzlTree;

the main Gtk struct

Meta