|
| Graphics.UI.Gtk.ModelView.CustomStore | | Portability | portable (depends on GHC) | | Stability | provisional | | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
| Description |
| Allows a custom data structure to be used with the TreeView
|
|
| Synopsis |
|
|
|
| Documentation |
|
| treeModelGetRow :: TypedTreeModelClass model => model row -> TreeIter -> IO row |
|
| data CustomTreeModel private row |
Instances | |
|
|
| data CustomTreeModelImplementation row |
| Constructors | | CustomTreeModelImplementation | | |
|
|
|
| customTreeModelNew :: private -> CustomTreeModelImplementation row -> IO (CustomTreeModel private row) |
|
| customTreeModelGetPrivate :: CustomTreeModel private row -> private |
|
| customTreeModelInvalidateIters :: CustomTreeModel private row -> IO () |
|
| View notifcation functions
|
|
| treeModelRowChanged |
|
|
| treeModelRowInserted |
|
|
| treeModelRowHasChildToggled |
| :: CustomTreeModel private row | | | -> TreePath | path - A TreePath pointing to the changed row
| | -> TreeIter | iter - A valid TreeIter pointing to the changed row
| | -> IO () | | | Emits the "row_has_child_toggled" signal on the CustomTreeModel. This should
be called by models after a node went from having no children to having
at least one child or vice versa.
|
|
|
| treeModelRowDeleted |
| :: CustomTreeModel private row | | | -> TreePath | path - A TreePath pointing to the previous location of
the deleted row.
| | -> IO () | | | Emits the "row_deleted" signal the CustomTreeModel. This should be called by
models after a row has been removed. The location pointed to by path
should be the location that the row previously was at. It may not be a valid
location anymore.
|
|
|
| treeModelRowsReordered |
| :: CustomTreeModel private row | | | -> TreePath | path - A TreePath pointing to the tree node whose
children have been reordered
| | -> TreeIter | iter - A valid TreeIter pointing to the node whose
children have been reordered, or {NULL, FIXME: this should
probably be converted to a Maybe data type} if the depth of
path is 0.
| | -> [Int] | newOrder - an array of integers mapping the current
position of each child to its old position before the
re-ordering, i.e. newOrder[newpos] = oldpos.
| | -> IO () | | | Emits the "rows_reordered" signal on the CustomTreeModel. This should be
called by models when their rows have been reordered.
|
|
|
| Produced by Haddock version 0.8 |