| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| Description | |||||||||||||||||||||||||||||||
| Allows a custom data structure to be used with the TreeView and other widgets that follow the model-view-controller paradigm. The two models Graphics.UI.Gtk.ModelView.ListStore.ListStore and Graphics.UI.Gtk.ModelView.TreeStore.TreeStore are based on the CustomStore. Even if no application-specific tree model should be implemented, this module is relevant in that it provides the functions customStoreSetColumn and customStoreGetRow functions. | |||||||||||||||||||||||||||||||
| Synopsis | |||||||||||||||||||||||||||||||
| The definition of a row-based store. | |||||||||||||||||||||||||||||||
| data CustomStore private row | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| data TreeModelFlags | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| data TreeModelIface row | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| data DragSourceIface model row | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| data DragDestIface model row | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| customStoreNew | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| customStoreGetRow :: TypedTreeModelClass model => model row -> TreeIter -> IO row | |||||||||||||||||||||||||||||||
| Extract a row of the given model at the given TreeIter. | |||||||||||||||||||||||||||||||
| customStoreSetColumn | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| customStoreGetPrivate :: CustomStore private row -> private | |||||||||||||||||||||||||||||||
| Return the private data stored in this CustomStore. The private data is meant as a container for the data stored in this model. | |||||||||||||||||||||||||||||||
| customStoreGetStamp :: CustomStore private row -> IO CInt | |||||||||||||||||||||||||||||||
| Query the current value of the stamp that is used to create TreeIter iterators. The stamp is compared each time a view accesses this store. If the stamp doesn't match, a warning is emitted. The stamp should be updated each time a the data in the model changes. The rationale is that a view should never use a stale TreeIter, i.e., one that refers to an old model. | |||||||||||||||||||||||||||||||
| customStoreInvalidateIters :: CustomStore private row -> IO () | |||||||||||||||||||||||||||||||
| Create a new stamp. See customStoreGetStamp. | |||||||||||||||||||||||||||||||
| treeModelGetRow :: TypedTreeModelClass model => model row -> TreeIter -> IO row | |||||||||||||||||||||||||||||||
| treeModelSetColumn | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| Produced by Haddock version 2.4.2 | |||||||||||||||||||||||||||||||