Name

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.

Synopsis

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>

Todo

treeSelectionGetSelected allows to retreive the associated TreeModel object. We currently do not use this feature so it could be added if needed.

Datatypes

type TreeSelectionCB

TreeSelectionCBTreePath -> IO ()

Callback type for a function that is called everytime the selection changes. This function is set with treeSelectionSetSelectFunction.

type TreeSelectionForeachCB

TreeSelectionForeachCBTreeIter -> IO ()

Callback function type for treeSelectionSelectedForeach.

type TreeSelectionForeachFunc

TreeSelectionForeachFuncFunPtr (((Ptr (TreeModel)) -> ((Ptr (TreePath)) -> ((Ptr (TreeIter)) -> ((Ptr ()) -> (IO ()))))))

type TreeSelectionFunc

TreeSelectionFuncFunPtr (((Ptr (TreeSelection)) -> ((Ptr (TreeModel)) -> ((Ptr (TreePath)) -> (CInt -> ((Ptr ()) -> (IO CInt)))))))

Methods

treeSelectionGetSelected

Retrieves the selection of a single choice TreeSelection.

treeSelectionGetSelected:: ts:: IO (Maybe TreeIter)
ts

treeSelectionGetTreeView

Retrieve the TreeView widget that this TreeSelection works on.

treeSelectionGetTreeView:: ts:: IO TreeView
ts

treeSelectionSelectAll

Select everything.

treeSelectionSelectAll:: ts:: IO ()
ts

treeSelectionSelectIter

Select a specific item by TreeIter.

treeSelectionSelectIter:: ts:: TreeIter:: IO ()
tsti

treeSelectionSelectPath

Select a specific item by TreePath.

treeSelectionSelectPath:: ts:: TreePath:: IO ()
tstp

treeSelectionSelectRange

Select a range specified by two TreePaths.

treeSelectionSelectRange:: ts:: TreePath:: TreePath:: IO ()
tsstartend

treeSelectionSelectedForeach

Execute a function for each selected node.

treeSelectionSelectedForeach:: ts:: TreeSelectionForeachCB:: IO ()
tsfun

treeSelectionSetMode

Set single or multiple choice.

treeSelectionSetMode:: ts:: SelectionMode:: IO ()
tssm

treeSelectionSetSelectFunction

Set a callback function if selection changes.

treeSelectionSetSelectFunction:: ts:: TreeSelectionCB:: IO ()
tsfun

treeSelectionUnselectAll

Deselect everything.

treeSelectionUnselectAll:: ts:: IO ()
ts

treeSelectionUnselectIter

Deselect a specific item by TreeIter.

treeSelectionUnselectIter:: ts:: TreeIter:: IO ()
tsti

treeSelectionUnselectPath

Deselect a specific item by TreePath.

treeSelectionUnselectPath:: ts:: TreePath:: IO ()
tstp

Signals

no type info on symbol onChanged