Stability | provisional |
---|---|
Portability | portable (depends on GHC) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The tree interface used by TreeView
.
Synopsis
- newtype TreeModel = TreeModel (ManagedPtr TreeModel)
- class (GObject o, IsDescendantOf TreeModel o) => IsTreeModel o
- type family ResolveTreeModelMethod (t :: Symbol) o where ...
- data TreeModelFilterNewMethodInfo
- data TreeModelForeachMethodInfo
- data TreeModelGetColumnTypeMethodInfo
- data TreeModelGetFlagsMethodInfo
- data TreeModelGetIterFirstMethodInfo
- data TreeModelGetIterFromStringMethodInfo
- data TreeModelGetIterMethodInfo
- data TreeModelGetNColumnsMethodInfo
- data TreeModelGetPathMethodInfo
- data TreeModelGetStringFromIterMethodInfo
- data TreeModelGetValueMethodInfo
- data TreeModelIterChildrenMethodInfo
- data TreeModelIterHasChildMethodInfo
- data TreeModelIterNChildrenMethodInfo
- data TreeModelIterNextMethodInfo
- data TreeModelIterNthChildMethodInfo
- data TreeModelIterParentMethodInfo
- data TreeModelIterPreviousMethodInfo
- data TreeModelRefNodeMethodInfo
- type TreeModelRowChangedCallback = TreePath -> TreeIter -> IO ()
- data TreeModelRowChangedMethodInfo
- data TreeModelRowChangedSignalInfo
- type TreeModelRowDeletedCallback = TreePath -> IO ()
- data TreeModelRowDeletedMethodInfo
- data TreeModelRowDeletedSignalInfo
- type TreeModelRowHasChildToggledCallback = TreePath -> TreeIter -> IO ()
- data TreeModelRowHasChildToggledMethodInfo
- data TreeModelRowHasChildToggledSignalInfo
- type TreeModelRowInsertedCallback = TreePath -> TreeIter -> IO ()
- data TreeModelRowInsertedMethodInfo
- data TreeModelRowInsertedSignalInfo
- data TreeModelRowsReorderedMethodInfo
- data TreeModelUnrefNodeMethodInfo
- treeModelRowDeleted :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> m ()
- treeModelRowInserted :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m ()
- treeModelRowChanged :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m ()
- toTreeModel :: (MonadIO m, IsTreeModel o) => o -> m TreeModel
- treeModelRowHasChildToggled :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m ()
- afterTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId
- afterTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId
- afterTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId
- afterTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId
- onTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId
- onTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId
- onTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId
- onTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId
- treeModelFilterNew :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreePath -> m TreeModel
- treeModelForeach :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeModelForeachFunc -> m ()
- treeModelGetColumnType :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Int32 -> m GType
- treeModelGetFlags :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> m [TreeModelFlags]
- treeModelGetIterFirst :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> m (Bool, TreeIter)
- treeModelGetIterFromString :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Text -> m (Bool, TreeIter)
- treeModelGetNColumns :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> m Int32
- treeModelGetPath :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m TreePath
- treeModelGetStringFromIter :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Text
- treeModelIterChildren :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreeIter -> m (Bool, TreeIter)
- treeModelIterHasChild :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Bool
- treeModelIterNChildren :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreeIter -> m Int32
- treeModelIterNext :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Bool
- treeModelIterNthChild :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreeIter -> Int32 -> m (Bool, TreeIter)
- treeModelIterParent :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m (Bool, TreeIter)
- treeModelIterPrevious :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Bool
- treeModelRefNode :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m ()
- treeModelRowsReordered :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> Maybe TreeIter -> [Int32] -> m ()
- treeModelUnrefNode :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m ()
- data ColumnId row ty
- makeColumnIdInt :: Int32 -> ColumnId row Int32
- makeColumnIdBool :: Int32 -> ColumnId row Bool
- makeColumnIdString :: Int32 -> ColumnId row Text
- makeColumnIdPixbuf :: Int32 -> ColumnId row Pixbuf
- invalidColumnId :: ColumnId row ty
- columnIdToNumber :: ColumnId row ty -> Int32
- stringToTreePath :: Text -> [Int32]
- treeModelGetValue :: IsTreeModel self => self -> TreeIter -> ColumnId row ty -> IO ty
- treeModelGetIter :: (MonadIO m, IsTreeModel model) => model -> TreePath -> m (Maybe TreeIter)
Detail
The TreeModel
interface defines a generic storage object for use by the
TreeView
and similar widgets. Specifically, the functions in defined here
are used by Gtk's widgets to access the stored data. Thus, rather than
calling these functions, an application programmer has to implement them.
While the module Data.GI.Gtk.ModelView.CustomStore provides the
necessary functions to implement the TreeMode
interface, it is often
sufficient to use the wo implementations that come with gi-gtk-hs, namely are
ListStore
and TreeStore
.
The model is represented as a hierarchical tree of values. It is important to note that this interface only provides a way of examining a model and observing changes. The implementation of each individual model decides how and if changes are made.
Two generic models are provided that implement the TreeModel
interface:
the TreeStore
and the ListStore
. To use these, the developer simply
inserts data into these models as necessary. These models provide the data
structure as well as the TreeModel
interface. In fact, they implement
other interfaces, making drag and drop and storing data trivial.
A TreeModel
stores records of the same type. Each record is referred to
as row, just like in a relational database. Defining how the information of
a row is displayed can be done in two ways: If the widget displays data
using CellRenderer
or one of its
derivatives, it is possible to state how a row is mapped to the attributes
of a renderer using the
cellLayoutSetAttributes
function.
Some widgets do not use
CellRenderer
s to display their
data. In this case an extraction function can be defined that maps a row to
one of a few basic types (like String
s or Int
s). This extraction
function is associated with a ColumnId
using
treeModelSetColumn
. The latter can
be set in the widget for the property that should be set. The widget then
uses the function treeModelGetValue
and the ColumnId
to extract the
value from the model. As the name suggests, using ColumnId
s creates a
view of the data as if each row were divided into a well-defined set of
columns, again, like a relational database.
Models are accessed on a node level of granularity. There are two index
types used to reference a particular node in a model. They are the
TreePath
and the TreeIter
. Most of the interface consists of operations
on a TreeIter
.
A path is essentially a potential node. It is a location on a model that
may or may not actually correspond to a node on a specific model. A
TreePath
is in fact a synonym for a list of Int
s and hence are easy to
manipulate. Each number refers to the offset at that level. Thus, the path
[0]
refers to the root node and the path [2,4]
refers to the fifth
child of the third node.
By contrast, a TreeIter
is a reference to a specific node on a specific
model. It is an abstract data type filled in by the model. One can convert
a path to an iterator by calling treeModelGetIter
. These iterators are
the primary way of accessing a model and are similar to the iterators used
by TextBuffer
. The model interface defines a set of operations using them
for navigating the model. Iterators are expected to always be valid for as
long as the model is unchanged (and doesn't emit a signal).
Class Hierarchy
| GInterface | +----TreeModel | +--------TypedTreeModel
Instances
class (GObject o, IsDescendantOf TreeModel o) => IsTreeModel o #
Instances
(GObject o, IsDescendantOf TreeModel o) => IsTreeModel o | |
Defined in GI.Gtk.Interfaces.TreeModel |
type family ResolveTreeModelMethod (t :: Symbol) o where ... #
data TreeModelFilterNewMethodInfo #
Instances
(signature ~ (Maybe TreePath -> m TreeModel), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelFilterNewMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelFilterNewMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelForeachMethodInfo #
Instances
(signature ~ (TreeModelForeachFunc -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelForeachMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelForeachMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetColumnTypeMethodInfo #
Instances
(signature ~ (Int32 -> m GType), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetColumnTypeMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetColumnTypeMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetFlagsMethodInfo #
Instances
(signature ~ m [TreeModelFlags], MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetFlagsMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetFlagsMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetIterFirstMethodInfo #
Instances
(signature ~ m (Bool, TreeIter), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetIterFirstMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetIterFirstMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetIterFromStringMethodInfo #
Instances
(signature ~ (Text -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetIterFromStringMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetIterFromStringMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetIterMethodInfo #
Instances
(signature ~ (TreePath -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetIterMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetIterMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetNColumnsMethodInfo #
Instances
(signature ~ m Int32, MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetNColumnsMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetNColumnsMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetPathMethodInfo #
Instances
(signature ~ (TreeIter -> m TreePath), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetPathMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetPathMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetStringFromIterMethodInfo #
Instances
(signature ~ (TreeIter -> m Text), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetStringFromIterMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetStringFromIterMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelGetValueMethodInfo #
Instances
(signature ~ (TreeIter -> Int32 -> m GValue), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetValueMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelGetValueMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelIterChildrenMethodInfo #
Instances
(signature ~ (Maybe TreeIter -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterChildrenMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelIterChildrenMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelIterHasChildMethodInfo #
Instances
(signature ~ (TreeIter -> m Bool), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterHasChildMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelIterHasChildMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelIterNChildrenMethodInfo #
Instances
(signature ~ (Maybe TreeIter -> m Int32), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterNChildrenMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelIterNChildrenMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelIterNextMethodInfo #
Instances
(signature ~ (TreeIter -> m Bool), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterNextMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelIterNextMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelIterNthChildMethodInfo #
Instances
(signature ~ (Maybe TreeIter -> Int32 -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterNthChildMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelIterNthChildMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelIterParentMethodInfo #
Instances
(signature ~ (TreeIter -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterParentMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelIterParentMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelIterPreviousMethodInfo #
Instances
(signature ~ (TreeIter -> m Bool), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterPreviousMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelIterPreviousMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelRefNodeMethodInfo #
Instances
(signature ~ (TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRefNodeMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelRefNodeMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
type TreeModelRowChangedCallback = TreePath -> TreeIter -> IO () #
data TreeModelRowChangedMethodInfo #
Instances
(signature ~ (TreePath -> TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowChangedMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelRowChangedMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelRowChangedSignalInfo #
Instances
SignalInfo TreeModelRowChangedSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowChangedSignalInfo connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowChangedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId dbgSignalInfo :: Maybe ResolvedSymbolInfo | |
type HaskellCallbackType TreeModelRowChangedSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel |
type TreeModelRowDeletedCallback = TreePath -> IO () #
data TreeModelRowDeletedMethodInfo #
Instances
(signature ~ (TreePath -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowDeletedMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelRowDeletedMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelRowDeletedSignalInfo #
Instances
SignalInfo TreeModelRowDeletedSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowDeletedSignalInfo connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowDeletedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId dbgSignalInfo :: Maybe ResolvedSymbolInfo | |
type HaskellCallbackType TreeModelRowDeletedSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel |
type TreeModelRowHasChildToggledCallback = TreePath -> TreeIter -> IO () #
data TreeModelRowHasChildToggledMethodInfo #
Instances
(signature ~ (TreePath -> TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowHasChildToggledMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelRowHasChildToggledMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelRowHasChildToggledSignalInfo #
Instances
SignalInfo TreeModelRowHasChildToggledSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowHasChildToggledSignalInfo connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowHasChildToggledSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId dbgSignalInfo :: Maybe ResolvedSymbolInfo | |
type HaskellCallbackType TreeModelRowHasChildToggledSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowHasChildToggledSignalInfo = TreeModelRowHasChildToggledCallback |
type TreeModelRowInsertedCallback = TreePath -> TreeIter -> IO () #
data TreeModelRowInsertedMethodInfo #
Instances
(signature ~ (TreePath -> TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowInsertedMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelRowInsertedMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelRowInsertedSignalInfo #
Instances
SignalInfo TreeModelRowInsertedSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowInsertedSignalInfo connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowInsertedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId dbgSignalInfo :: Maybe ResolvedSymbolInfo | |
type HaskellCallbackType TreeModelRowInsertedSignalInfo | |
Defined in GI.Gtk.Interfaces.TreeModel |
data TreeModelRowsReorderedMethodInfo #
Instances
(signature ~ (TreePath -> Maybe TreeIter -> [Int32] -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowsReorderedMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelRowsReorderedMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
data TreeModelUnrefNodeMethodInfo #
Instances
(signature ~ (TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelUnrefNodeMethodInfo a signature | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethod :: a -> signature | |
OverloadedMethodInfo TreeModelUnrefNodeMethodInfo (a :: Type) | |
Defined in GI.Gtk.Interfaces.TreeModel overloadedMethodInfo :: Maybe ResolvedSymbolInfo |
treeModelRowDeleted :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> m () #
treeModelRowInserted :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m () #
treeModelRowChanged :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m () #
toTreeModel :: (MonadIO m, IsTreeModel o) => o -> m TreeModel #
treeModelRowHasChildToggled :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m () #
afterTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId #
afterTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId #
afterTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId #
afterTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId #
onTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId #
onTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId #
onTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId #
onTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId #
treeModelFilterNew :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreePath -> m TreeModel #
treeModelForeach :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeModelForeachFunc -> m () #
treeModelGetColumnType :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Int32 -> m GType #
treeModelGetFlags :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> m [TreeModelFlags] #
treeModelGetIterFirst :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> m (Bool, TreeIter) #
treeModelGetIterFromString :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Text -> m (Bool, TreeIter) #
treeModelGetNColumns :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> m Int32 #
treeModelGetPath :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m TreePath #
treeModelGetStringFromIter :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Text #
treeModelIterChildren :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreeIter -> m (Bool, TreeIter) #
treeModelIterHasChild :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Bool #
treeModelIterNChildren :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreeIter -> m Int32 #
treeModelIterNext :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Bool #
treeModelIterNthChild :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreeIter -> Int32 -> m (Bool, TreeIter) #
treeModelIterParent :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m (Bool, TreeIter) #
treeModelIterPrevious :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m Bool #
treeModelRefNode :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m () #
treeModelRowsReordered :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> Maybe TreeIter -> [Int32] -> m () #
treeModelUnrefNode :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m () #
Constructors
invalidColumnId :: ColumnId row ty Source #
The invalid ColumnId
. Widgets use this value if no column id has
been set.
Methods
stringToTreePath :: Text -> [Int32] Source #
Convert a comma or colon separated string into a TreePath
. Any
non-digit characters are assumed to separate indices, thus, the function
always is always successful.
:: IsTreeModel self | |
=> self | |
-> TreeIter | |
-> ColumnId row ty |
|
-> IO ty |
Read the value of at a specific column and TreeIter
.
treeModelGetIter :: (MonadIO m, IsTreeModel model) => model -> TreePath -> m (Maybe TreeIter) Source #
Gets the a TreeIter
or Nothing if the path is invalid or empty