TreeSelection —
* A TreeSelection is a data type belonging to a TreeModel. As the name suggests it holds the current selection which can even be a multiple choice.
type
TreeSelectionCB |
type
TreeSelectionForeachCB |
type
TreeSelectionForeachFunc |
type
TreeSelectionFunc |
treeSelectionGetSelected:: TreeSelectionClass ts => ts -> IO (Maybe TreeIter) |
treeSelectionGetTreeView:: TreeSelectionClass ts => ts -> IO TreeView |
treeSelectionSelectAll:: TreeSelectionClass ts => ts -> IO () |
treeSelectionSelectIter:: TreeSelectionClass ts => ts -> TreeIter -> IO () |
treeSelectionSelectPath:: TreeSelectionClass ts => ts -> TreePath -> IO () |
treeSelectionSelectRange:: TreeSelectionClass ts => ts -> TreePath -> TreePath -> IO () |
treeSelectionSelectedForeach:: TreeSelectionClass ts => ts -> TreeSelectionForeachCB -> IO () |
treeSelectionSetMode:: TreeSelectionClass ts => ts -> SelectionMode -> IO () |
treeSelectionSetSelectFunction:: TreeSelectionClass ts => ts -> TreeSelectionCB -> IO () |
treeSelectionUnselectAll:: TreeSelectionClass ts => ts -> IO () |
treeSelectionUnselectIter:: TreeSelectionClass ts => ts -> TreeIter -> IO () |
treeSelectionUnselectPath:: TreeSelectionClass ts => ts -> TreePath -> IO () |
onChanged <no type information> |
treeSelectionGetSelected allows to retreive the associated TreeModel object. We currently do not use this feature so it could be added if needed.
| TreeSelectionCB | TreePath -> IO () |
Callback type for a function that is called everytime the selection changes. This function is set with treeSelectionSetSelectFunction.
| TreeSelectionForeachCB | TreeIter -> IO () |
Callback function type for treeSelectionSelectedForeach.
Retrieves the selection of a single choice TreeSelection.
| treeSelectionGetSelected | :: ts | :: IO (Maybe TreeIter) |
| ts |
Retrieve the TreeView widget that this TreeSelection works on.
| treeSelectionGetTreeView | :: ts | :: IO TreeView |
| ts |
Select a specific item by TreeIter.
| treeSelectionSelectIter | :: ts | :: TreeIter | :: IO () |
| ts | ti |
Select a specific item by TreePath.
| treeSelectionSelectPath | :: ts | :: TreePath | :: IO () |
| ts | tp |
Select a range specified by two TreePaths.
| treeSelectionSelectRange | :: ts | :: TreePath | :: TreePath | :: IO () |
| ts | start | end |
Execute a function for each selected node.
| treeSelectionSelectedForeach | :: ts | :: TreeSelectionForeachCB | :: IO () |
| ts | fun |
Set single or multiple choice.
| treeSelectionSetMode | :: ts | :: SelectionMode | :: IO () |
| ts | sm |
Set a callback function if selection changes.
| treeSelectionSetSelectFunction | :: ts | :: TreeSelectionCB | :: IO () |
| ts | fun |