|
| Graphics.UI.Gtk.ModelView.TreeStore | | Portability | portable (depends on GHC) | | Stability | provisional | | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
| Description |
| Standard model to store hierarchical data.
|
|
| Synopsis |
|
|
|
|
| Types
|
|
| data TreeStore a |
| A store for hierarchical data.
| Instances | |
|
|
| Constructors
|
|
| treeStoreNew :: Forest a -> IO (TreeStore a) |
Create a new list store.
- The given rose tree determines the initial content and may be the empty
list. Each Tree in the forest corresponds to one top-level node.
|
|
| Methods
|
|
| treeStoreGetValue :: TreeStore a -> TreePath -> IO a |
| Extract one node from the current model. Fails if the given
TreePath refers to a non-existent node.
|
|
| treeStoreGetTree :: TreeStore a -> TreePath -> IO (Tree a) |
| Extract a subtree from the current model. Fails if the given
TreePath refers to a non-existent node.
|
|
| treeStoreSetValue :: TreeStore a -> TreePath -> a -> IO () |
| Set a node in the store.
|
|
| treeStoreInsert |
| :: TreeStore a | the store
| | -> TreePath | path - the position of the parent
| | -> Int | pos - the index of the new tree
| | -> a | the value to be inserted
| | -> IO () | | Insert a single node into the store.
- This function inserts a single node without children into the tree.
Its arguments are similar to those of treeStoreInsert.
|
|
|
| treeStoreInsertTree |
| :: TreeStore a | the store
| | -> TreePath | path - the position of the parent
| | -> Int | pos - the index of the new tree
| | -> Tree a | the value to be inserted
| | -> IO () | | | Insert a node into the store.
|
|
|
| treeStoreRemove :: TreeStore a -> TreePath -> IO Bool |
Remove a node from the store.
- The node denoted by the path is removed, along with all its children.
The function returns True if the given node was found.
|
|
| treeStoreClear :: TreeStore a -> IO () |
|
| Produced by Haddock version 0.8 |