gda.tree_node

Module for [TreeNode] class

Types 4

Methods
GType _gType() @property
TreeNode self()Returns `this`, for use in `with` statements.
TreeNodeGidBuilder builder()Get builder for [gda.tree_node.TreeNode] Returns: New builder object
string name() @property
void name(string propval) @property
gobject.value.Value fetchAttribute(string attribute)Get the value associated to the attribute named attribute for node. If the attribute is not set, then node's parents is queries (recursively up to the top level node).
gda.tree_node.TreeNode getChildIndex(int index)Get the #GdaTreeNode child of node at position index (starting at 0).
gda.tree_node.TreeNode getChildName(string name)Get the #GdaTreeNode child of node which has the #GDAATTRIBUTENAME set to name
gda.tree_node.TreeNode[] getChildren()Get a list of all node's children, free it with [glib.slist.SList.free] after usage Returns: a new #GSList of #GdaTreeNode objects, or null if node does not have any child
gobject.value.Value getNodeAttribute(string attribute)Get the value associated to the attribute named attribute for node. The difference with [gda.treenode.TreeNode.fetchAttribute] is that [gda.treenode.TreeNode.fetchAttribute] will also query node's ...
gda.tree_node.TreeNode getParent()Get the #GdaTreeNode parent of node in the #GdaTree node belongs to. If node is at the top level, then this method return null. Returns: the parent #GdaTreeNode
void setNodeAttribute(string attribute, gobject.value.Value value, glib.types.DestroyNotify destroy)Set the value associated to a named attribute. The attribute string is used AS IT IS by this method (eg. no copy of it is made), and the memory it uses will be freed using the destroy function when...
gulong connectNodeChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.tree_node.TreeNode))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree_node.TreeNode))) && Parameters!T.length < 3)Connect to `NodeChanged` signal.
gulong connectNodeDeleted(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree_node.TreeNode))) && Parameters!T.length < 3)Connect to `NodeDeleted` signal.
gulong connectNodeHasChildToggled(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.tree_node.TreeNode))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree_node.TreeNode))) && Parameters!T.length < 3)Connect to `NodeHasChildToggled` signal.
gulong connectNodeInserted(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.tree_node.TreeNode))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree_node.TreeNode))) && Parameters!T.length < 3)Connect to `NodeInserted` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(string name = null)Creates a new #GdaTreeNode object

Fluent builder for [gda.tree_node.TreeNode]

Methods
Constructors
this(GError * err)
this(Code code, string msg)