| ||||||||||||||
| ||||||||||||||
| Description | ||||||||||||||
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. TODO
| ||||||||||||||
| Synopsis | ||||||||||||||
| Documentation | ||||||||||||||
| data TreeSelection | ||||||||||||||
| ||||||||||||||
| class GObjectClass o => TreeSelectionClass o | ||||||||||||||
| ||||||||||||||
| castToTreeSelection :: GObjectClass obj => obj -> TreeSelection | ||||||||||||||
| data SelectionMode | ||||||||||||||
| ||||||||||||||
| treeSelectionSetMode :: TreeSelectionClass ts => ts -> SelectionMode -> IO () | ||||||||||||||
| Set single or multiple choice. | ||||||||||||||
| treeSelectionGetMode :: TreeSelectionClass ts => ts -> IO SelectionMode | ||||||||||||||
| Gets the selection mode. | ||||||||||||||
| type TreeSelectionCB = TreePath -> IO () | ||||||||||||||
| Callback type for a function that is called everytime the selection changes. This function is set with treeSelectionSetSelectFunction. | ||||||||||||||
| treeSelectionSetSelectFunction :: TreeSelectionClass ts => ts -> TreeSelectionCB -> IO () | ||||||||||||||
| Set a callback function if selection changes. | ||||||||||||||
| treeSelectionGetTreeView :: TreeSelectionClass ts => ts -> IO TreeView | ||||||||||||||
| Retrieve the TreeView widget that this TreeSelection works on. | ||||||||||||||
| treeSelectionGetSelected :: TreeSelectionClass ts => ts -> IO (Maybe TreeIter) | ||||||||||||||
| Retrieves the selection of a single choice TreeSelection. | ||||||||||||||
| type TreeSelectionForeachCB = TreeIter -> IO () | ||||||||||||||
| Callback function type for treeSelectionSelectedForeach. | ||||||||||||||
| treeSelectionSelectedForeach :: TreeSelectionClass ts => ts -> TreeSelectionForeachCB -> IO () | ||||||||||||||
| Execute a function for each selected node. | ||||||||||||||
| treeSelectionSelectPath :: TreeSelectionClass ts => ts -> TreePath -> IO () | ||||||||||||||
| Select a specific item by TreePath. | ||||||||||||||
| treeSelectionUnselectPath :: TreeSelectionClass ts => ts -> TreePath -> IO () | ||||||||||||||
| Deselect a specific item by TreePath. | ||||||||||||||
| treeSelectionPathIsSelected :: TreeSelectionClass ts => ts -> TreePath -> IO Bool | ||||||||||||||
| Returns True if the row at the given path is currently selected. | ||||||||||||||
| treeSelectionSelectIter :: TreeSelectionClass ts => ts -> TreeIter -> IO () | ||||||||||||||
| Select a specific item by TreeIter. | ||||||||||||||
| treeSelectionUnselectIter :: TreeSelectionClass ts => ts -> TreeIter -> IO () | ||||||||||||||
| Deselect a specific item by TreeIter. | ||||||||||||||
| treeSelectionIterIsSelected :: TreeSelectionClass ts => ts -> TreeIter -> IO Bool | ||||||||||||||
| Returns True if the row at the given iter is currently selected. | ||||||||||||||
| treeSelectionSelectAll :: TreeSelectionClass ts => ts -> IO () | ||||||||||||||
| Select everything. | ||||||||||||||
| treeSelectionUnselectAll :: TreeSelectionClass ts => ts -> IO () | ||||||||||||||
| Deselect everything. | ||||||||||||||
| treeSelectionSelectRange :: TreeSelectionClass ts => ts -> TreePath -> TreePath -> IO () | ||||||||||||||
| Select a range specified by two TreePaths. | ||||||||||||||
| onSelectionChanged :: TreeSelectionClass ts => ts -> IO () -> IO (ConnectId ts) | ||||||||||||||
| Emitted each time the user changes the selection. | ||||||||||||||
| afterSelectionChanged :: TreeSelectionClass ts => ts -> IO () -> IO (ConnectId ts) | ||||||||||||||
| Produced by Haddock version 0.6 |