TreeStore —
treeStoreNew:: [TMType] -> IO TreeStore |
treeStoreAppend:: TreeStoreClass ts => ts -> Maybe TreeIter -> IO TreeIter |
treeStoreInsert:: TreeStoreClass ts => ts -> Maybe TreeIter -> Int -> IO TreeIter |
treeStoreInsertAfter:: TreeStoreClass ts => ts -> TreeIter -> IO TreeIter |
treeStoreInsertBefore:: TreeStoreClass ts => ts -> TreeIter -> IO TreeIter |
treeStoreIsAncestor:: TreeStoreClass ts => ts -> TreeIter -> TreeIter -> IO Bool |
treeStoreIterDepth:: TreeStoreClass ts => ts -> TreeIter -> IO Int |
treeStorePrepend:: TreeStoreClass ts => ts -> Maybe TreeIter -> IO TreeIter |
treeStoreRemove:: TreeStoreClass ts => ts -> TreeIter -> IO Bool |
treeStoreSetValue:: TreeStoreClass ts => ts -> TreeIter -> Int -> GenericValue -> IO () |
Insert a child node behind other siblings.
| treeStoreAppend | :: ts | :: Maybe TreeIter | :: IO TreeIter |
| ts | parent |
This is equivalent to treeStoreInsert parent (-1) .
Insert a child node into the tree. If the parent is Nothing the insert at the root of the tree. The pos parameter determines the position with respect to other siblings. Set this to -1 to insert the node as last node.
| treeStoreInsert | :: ts | :: Maybe TreeIter | :: Int | :: IO TreeIter |
| ts | parent | pos |
Insert a node behind the sibling node on the same level.
| treeStoreInsertAfter | :: ts | :: TreeIter | :: IO TreeIter |
| ts | sibling |
Insert a node in front of the sibling node on the same level.
| treeStoreInsertBefore | :: ts | :: TreeIter | :: IO TreeIter |
| ts | sibling |
Check if a node is in a parental relationship with another node. Returns True even if parent is grandparent,... of child.
| treeStoreIsAncestor | :: ts | :: TreeIter | :: TreeIter | :: IO Bool |
| ts | parent | child |
Calculate the level of a node. Returns 1 for a root node.
| treeStoreIterDepth | :: ts | :: TreeIter | :: IO Int |
| ts | iter |
Insert a child node in front of every other sibling.
| treeStorePrepend | :: ts | :: Maybe TreeIter | :: IO TreeIter |
| ts | parent |
This is equivalent to treeStoreInsert parent 0 .
Remove a specific node.
| treeStoreRemove | :: ts | :: TreeIter | :: IO Bool |
| ts | ti |
The TreeIter will point to the entry following the one which was just removed. The function returns False if the tiTreeIter does not point to a valid element (i.e. the function just removed the bottom entry from the tree).
<warning><para>This function returned () in Gtk version 2.0.X</warning><para>