gi-gtk-hs-0.3.18: A wrapper for gi-gtk, adding a few more idiomatic API parts on top

Stability | provisional
Portability | portable (depends on GHC)
Safe Haskell | None
Language | Haskell2010

Data.GI.Gtk.ModelView.TreeModel

Contents

- Detail
- Class Hierarchy
- Constructors
- Methods
- Orphan instances

Description

The tree interface used by `TreeView`.

Synopsis

- newtype TreeModel = TreeModel (ManagedPtr TreeModel)
- treeModelGetFlags :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> m [TreeModelFlags]
- treeModelForeach :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeModelForeachFunc -> m ()
- treeModelRefNode :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m ()
- class (GObject o, IsDescendantOf TreeModel o) => IsTreeModel o
- toTreeModel :: (MonadIO m, IsTreeModel o) => o -> m TreeModel
- type TreeModelRowInsertedCallback = TreePath -> TreeIter -> IO ()
- type TreeModelRowHasChildToggledCallback = TreePath -> TreeIter -> IO ()
- type TreeModelRowDeletedCallback = TreePath -> IO ()
- type TreeModelRowChangedCallback = TreePath -> TreeIter -> IO ()
- treeModelFilterNew :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Maybe TreePath -> m TreeModel
- treeModelGetColumnType :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> Int32 -> m GType
- 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
- treeModelRowChanged :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m ()
- treeModelRowDeleted :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> m ()
- treeModelRowHasChildToggled :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m ()
- treeModelRowInserted :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> TreeIter -> m ()
- treeModelRowsReordered :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreePath -> Maybe TreeIter -> [Int32] -> m ()
- treeModelUnrefNode :: (HasCallStack, MonadIO m, IsTreeModel a) => a -> TreeIter -> m ()
- onTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId
- afterTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId
- onTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId
- afterTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId
- onTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId
- afterTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId
- onTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId
- afterTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId
- 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
- data TreeModelRowChangedMethodInfo
- data TreeModelRowChangedSignalInfo
- data TreeModelRowDeletedMethodInfo
- data TreeModelRowDeletedSignalInfo
- data TreeModelRowHasChildToggledMethodInfo
- data TreeModelRowHasChildToggledSignalInfo
- data TreeModelRowInsertedMethodInfo
- data TreeModelRowInsertedSignalInfo
- data TreeModelRowsReorderedMethodInfo
- data TreeModelUnrefNodeMethodInfo
- 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

newtype TreeModel Source #

Memory-managed wrapper type.

Constructors

TreeModel (ManagedPtr TreeModel) |

#### Instances

Instances details

Eq TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods (==) :: TreeModel -> TreeModel -> Bool Source # (/=) :: TreeModel -> TreeModel -> Bool Source #
GObject TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel
ManagedPtrNewtype TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods toManagedPtr :: TreeModel -> ManagedPtr TreeModel Source #
TypedObject TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods glibType :: IO GType Source #
HasParentTypes TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel
HasAttributeList TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel
(info ~ ResolveTreeModelMethod t TreeModel, OverloadedMethod info TreeModel p, HasField t TreeModel p) => HasField (t :: Symbol) TreeModel p |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods getField :: TreeModel -> p Source #
(info ~ ResolveTreeModelMethod t TreeModel, OverloadedMethodInfo info TreeModel) => IsLabel t (MethodProxy info TreeModel) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods fromLabel :: MethodProxy info TreeModel Source #
(info ~ ResolveTreeModelMethod t TreeModel, OverloadedMethod info TreeModel p) => IsLabel t (TreeModel -> p) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods fromLabel :: TreeModel -> p Source #
IsGValue (Maybe TreeModel) | Convert `TreeModel` to and from `GValue`. See `toGValue` and `fromGValue`.
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods gvalueGType_ :: IO GType Source # gvalueSet_ :: Ptr GValue -> Maybe TreeModel -> IO () Source # gvalueGet_ :: Ptr GValue -> IO (Maybe TreeModel) Source #
type AttributeList TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type AttributeList TreeModel = TreeModelAttributeList
type ParentTypes TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type ParentTypes TreeModel = '[Object]
type SignalList TreeModel |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type SignalList TreeModel = TreeModelSignalList

treeModelGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> m [TreeModelFlags] | Returns: the flags supported by this interface

Returns a set of flags supported by this interface.

The flags are a bitwise combination of `TreeModelFlags`. The flags supported should not change during the lifetime of the `treeModel`.

treeModelForeach Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `model`: a `TreeModel`
-> TreeModelForeachFunc | `func`: a function to be called on each row
-> m () |

Calls func on each node in model in a depth-first fashion.

If `func` returns `True`, then the tree ceases to be walked, and `treeModelForeach` returns.

treeModelRefNode Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `iter`: the `TreeIter`-struct
-> m () |

Lets the tree ref the node.

This is an optional method for models to implement. To be more specific, models may ignore this call as it exists primarily for performance reasons.

This function is primarily meant as a way for views to let caching models know when nodes are being displayed (and hence, whether or not to cache that node). Being displayed means a node is in an expanded branch, regardless of whether the node is currently visible in the viewport. For example, a file-system based model would not want to keep the entire file-hierarchy in memory, just the sections that are currently being displayed by every current view.

A model should be expected to be able to get an iter independent of its reffed state.

class (GObject o, IsDescendantOf TreeModel o) => IsTreeModel o Source #

Type class for types which can be safely cast to `TreeModel`, for instance with `toTreeModel`.

#### Instances

Instances details

(GObject o, IsDescendantOf TreeModel o) => IsTreeModel o |
Instance details Defined in GI.Gtk.Interfaces.TreeModel

toTreeModel :: (MonadIO m, IsTreeModel o) => o -> m TreeModel Source #

Cast to `TreeModel`, for types for which this is known to be safe. For general casts, use `castTo`.

type TreeModelRowInsertedCallback Source #

Arguments

= TreePath | `path`: a `TreePath`-struct identifying the new row
-> TreeIter | `iter`: a valid `TreeIter`-struct pointing to the new row
-> IO () |

This signal is emitted when a new row has been inserted in the model.

Note that the row may still be empty at this point, since it is a common pattern to first insert an empty row, and then fill it with the desired values.

type TreeModelRowHasChildToggledCallback Source #

Arguments

= TreePath | `path`: a `TreePath`-struct identifying the row
-> TreeIter | `iter`: a valid `TreeIter`-struct pointing to the row
-> IO () |

This signal is emitted when a row has gotten the first child row or lost its last child row.

type TreeModelRowDeletedCallback Source #

Arguments

= TreePath | `path`: a `TreePath`-struct identifying the row
-> IO () |

This signal is emitted when a row has been deleted.

Note that no iterator is passed to the signal handler, since the row is already deleted.

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.

type TreeModelRowChangedCallback Source #

Arguments

= TreePath | `path`: a `TreePath`-struct identifying the changed row
-> TreeIter | `iter`: a valid `TreeIter`-struct pointing to the changed row
-> IO () |

This signal is emitted when a row in the model has changed.

treeModelFilterNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `childModel`: A `TreeModel`.
-> Maybe TreePath | `root`: A `TreePath` or `Nothing`.
-> m TreeModel | Returns: A new `TreeModel`.

Creates a new `TreeModel`, with `childModel` as the child_model and `root` as the virtual root.

Since: 2.4

treeModelGetColumnType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> Int32 | `index_`: the column index
-> m GType | Returns: the type of the column

Returns the type of the column.

treeModelGetIterFirst Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> m (Bool, TreeIter) | Returns: `True`, if `iter` was set

Initializes `iter` with the first iterator in the tree (the one at the path "0") and returns `True`. Returns `False` if the tree is empty.

treeModelGetIterFromString Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> Text | `pathString`: a string representation of a `TreePath`-struct
-> m (Bool, TreeIter) | Returns: `True`, if `iter` was set

Sets `iter` to a valid iterator pointing to `pathString`, if it exists. Otherwise, `iter` is left invalid and `False` is returned.

treeModelGetNColumns Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> m Int32 | Returns: the number of columns

Returns the number of columns supported by `treeModel`.

treeModelGetPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `iter`: the `TreeIter`-struct
-> m TreePath | Returns: a newly-created `TreePath`-struct

Returns a newly-created `TreePath`-struct referenced by `iter`.

This path should be freed with `treePathFree`.

treeModelGetStringFromIter Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `iter`: a `TreeIter`-struct
-> m Text | Returns: a newly-allocated string. Must be freed with `free`.

Generates a string representation of the iter.

This string is a “:” separated list of numbers. For example, “4:10:0:3” would be an acceptable return value for this string.

Since: 2.2

treeModelIterChildren Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> Maybe TreeIter | `parent`: the `TreeIter`-struct, or `Nothing`
-> m (Bool, TreeIter) | Returns: `True`, if `iter` has been set to the first child

Sets `iter` to point to the first child of `parent`.

If `parent` has no children, `False` is returned and `iter` is set to be invalid. `parent` will remain a valid node after this function has been called.

If `parent` is `Nothing` returns the first node, equivalent to `gtk_tree_model_get_iter_first (tree_model, iter);`

treeModelIterHasChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `iter`: the `TreeIter`-struct to test for children
-> m Bool | Returns: `True` if `iter` has children

Returns `True` if `iter` has children, `False` otherwise.

treeModelIterNChildren Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> Maybe TreeIter | `iter`: the `TreeIter`-struct, or `Nothing`
-> m Int32 | Returns: the number of children of `iter`

Returns the number of children that `iter` has.

As a special case, if `iter` is `Nothing`, then the number of toplevel nodes is returned.

treeModelIterNext Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `iter`: the `TreeIter`-struct
-> m Bool | Returns: `True` if `iter` has been changed to the next node

Sets `iter` to point to the node following it at the current level.

If there is no next `iter`, `False` is returned and `iter` is set to be invalid.

treeModelIterNthChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> Maybe TreeIter | `parent`: the `TreeIter`-struct to get the child from, or `Nothing`.
-> Int32 | `n`: the index of the desired child
-> m (Bool, TreeIter) | Returns: `True`, if `parent` has an `n`-th child

Sets `iter` to be the child of `parent`, using the given index.

The first index is 0. If `n` is too big, or `parent` has no children, `iter` is set to an invalid iterator and `False` is returned. `parent` will remain a valid node after this function has been called. As a special case, if `parent` is `Nothing`, then the `n`-th root node is set.

treeModelIterParent Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `child`: the `TreeIter`-struct
-> m (Bool, TreeIter) | Returns: `True`, if `iter` is set to the parent of `child`

Sets `iter` to be the parent of `child`.

If `child` is at the toplevel, and doesn’t have a parent, then `iter` is set to an invalid iterator and `False` is returned. `child` will remain a valid node after this function has been called.

`iter` will be initialized before the lookup is performed, so `child` and `iter` cannot point to the same memory location.

treeModelIterPrevious Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `iter`: the `TreeIter`-struct
-> m Bool | Returns: `True` if `iter` has been changed to the previous node

Sets `iter` to point to the previous node at the current level.

If there is no previous `iter`, `False` is returned and `iter` is set to be invalid.

Since: 3.0

treeModelRowChanged Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreePath | `path`: a `TreePath`-struct pointing to the changed row
-> TreeIter | `iter`: a valid `TreeIter`-struct pointing to the changed row
-> m () |

Emits the TreeModel::rowChanged signal on `treeModel`.

treeModelRowDeleted Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreePath | `path`: a `TreePath`-struct pointing to the previous location of the deleted row
-> m () |

Emits the TreeModel::rowDeleted signal on `treeModel`.

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.

Nodes that are deleted are not unreffed, this means that any outstanding references on the deleted node should not be released.

treeModelRowHasChildToggled Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreePath | `path`: a `TreePath`-struct pointing to the changed row
-> TreeIter | `iter`: a valid `TreeIter`-struct pointing to the changed row
-> m () |

Emits the TreeModel::rowHasChildToggled signal on `treeModel`. This should be called by models after the child state of a node changes.

treeModelRowInserted Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreePath | `path`: a `TreePath`-struct pointing to the inserted row
-> TreeIter | `iter`: a valid `TreeIter`-struct pointing to the inserted row
-> m () |

Emits the TreeModel::rowInserted signal on `treeModel`.

treeModelRowsReordered Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreePath | `path`: a `TreePath`-struct pointing to the tree node whose children have been reordered
-> Maybe TreeIter | `iter`: a valid `TreeIter`-struct pointing to the node whose children have been reordered, or `Nothing` if the depth of `path` is 0
-> [Int32] | `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`
-> m () |

Emits the `TreeModel`::`rows-reordered` signal on `treeModel`.

This should be called by models when their rows have been reordered.

Since: 3.10

treeModelUnrefNode Source #

Arguments

:: (HasCallStack, MonadIO m, IsTreeModel a) |
=> a | `treeModel`: a `TreeModel`
-> TreeIter | `iter`: the `TreeIter`-struct
-> m () |

Lets the tree unref the node.

This is an optional method for models to implement. To be more specific, models may ignore this call as it exists primarily for performance reasons. For more information on what this means, see `treeModelRefNode`.

Please note that nodes that are deleted are not unreffed.

onTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to

    on treeModel #rowChanged callback

afterTreeModelRowChanged :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowChangedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to

    after treeModel #rowChanged callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit `?self` parameter. Note that this requires activating the `ImplicitParams` GHC extension.

onTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowDeleted signal, to be run before the default handler. When overloading is enabled, this is equivalent to

    on treeModel #rowDeleted callback

afterTreeModelRowDeleted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowDeletedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowDeleted signal, to be run after the default handler. When overloading is enabled, this is equivalent to

    after treeModel #rowDeleted callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit `?self` parameter. Note that this requires activating the `ImplicitParams` GHC extension.

onTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowHasChildToggled signal, to be run before the default handler. When overloading is enabled, this is equivalent to

    on treeModel #rowHasChildToggled callback

afterTreeModelRowHasChildToggled :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowHasChildToggledCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowHasChildToggled signal, to be run after the default handler. When overloading is enabled, this is equivalent to

    after treeModel #rowHasChildToggled callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit `?self` parameter. Note that this requires activating the `ImplicitParams` GHC extension.

onTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowInserted signal, to be run before the default handler. When overloading is enabled, this is equivalent to

    on treeModel #rowInserted callback

afterTreeModelRowInserted :: (IsTreeModel a, MonadIO m) => a -> ((?self :: a) => TreeModelRowInsertedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the rowInserted signal, to be run after the default handler. When overloading is enabled, this is equivalent to

    after treeModel #rowInserted callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit `?self` parameter. Note that this requires activating the `ImplicitParams` GHC extension.

type family ResolveTreeModelMethod (t :: Symbol) o where ... Source #

Equations

ResolveTreeModelMethod "bindProperty" o = ObjectBindPropertyMethodInfo |
ResolveTreeModelMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo |
ResolveTreeModelMethod "filterNew" o = TreeModelFilterNewMethodInfo |
ResolveTreeModelMethod "forceFloating" o = ObjectForceFloatingMethodInfo |
ResolveTreeModelMethod "foreach" o = TreeModelForeachMethodInfo |
ResolveTreeModelMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo |
ResolveTreeModelMethod "getv" o = ObjectGetvMethodInfo |
ResolveTreeModelMethod "isFloating" o = ObjectIsFloatingMethodInfo |
ResolveTreeModelMethod "iterChildren" o = TreeModelIterChildrenMethodInfo |
ResolveTreeModelMethod "iterHasChild" o = TreeModelIterHasChildMethodInfo |
ResolveTreeModelMethod "iterNChildren" o = TreeModelIterNChildrenMethodInfo |
ResolveTreeModelMethod "iterNext" o = TreeModelIterNextMethodInfo |
ResolveTreeModelMethod "iterNthChild" o = TreeModelIterNthChildMethodInfo |
ResolveTreeModelMethod "iterParent" o = TreeModelIterParentMethodInfo |
ResolveTreeModelMethod "iterPrevious" o = TreeModelIterPreviousMethodInfo |
ResolveTreeModelMethod "notify" o = ObjectNotifyMethodInfo |
ResolveTreeModelMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo |
ResolveTreeModelMethod "ref" o = ObjectRefMethodInfo |
ResolveTreeModelMethod "refNode" o = TreeModelRefNodeMethodInfo |
ResolveTreeModelMethod "refSink" o = ObjectRefSinkMethodInfo |
ResolveTreeModelMethod "rowChanged" o = TreeModelRowChangedMethodInfo |
ResolveTreeModelMethod "rowDeleted" o = TreeModelRowDeletedMethodInfo |
ResolveTreeModelMethod "rowHasChildToggled" o = TreeModelRowHasChildToggledMethodInfo |
ResolveTreeModelMethod "rowInserted" o = TreeModelRowInsertedMethodInfo |
ResolveTreeModelMethod "rowsReordered" o = TreeModelRowsReorderedMethodInfo |
ResolveTreeModelMethod "runDispose" o = ObjectRunDisposeMethodInfo |
ResolveTreeModelMethod "stealData" o = ObjectStealDataMethodInfo |
ResolveTreeModelMethod "stealQdata" o = ObjectStealQdataMethodInfo |
ResolveTreeModelMethod "thawNotify" o = ObjectThawNotifyMethodInfo |
ResolveTreeModelMethod "unref" o = ObjectUnrefMethodInfo |
ResolveTreeModelMethod "unrefNode" o = TreeModelUnrefNodeMethodInfo |
ResolveTreeModelMethod "watchClosure" o = ObjectWatchClosureMethodInfo |
ResolveTreeModelMethod "getColumnType" o = TreeModelGetColumnTypeMethodInfo |
ResolveTreeModelMethod "getData" o = ObjectGetDataMethodInfo |
ResolveTreeModelMethod "getFlags" o = TreeModelGetFlagsMethodInfo |
ResolveTreeModelMethod "getIter" o = TreeModelGetIterMethodInfo |
ResolveTreeModelMethod "getIterFirst" o = TreeModelGetIterFirstMethodInfo |
ResolveTreeModelMethod "getIterFromString" o = TreeModelGetIterFromStringMethodInfo |
ResolveTreeModelMethod "getNColumns" o = TreeModelGetNColumnsMethodInfo |
ResolveTreeModelMethod "getPath" o = TreeModelGetPathMethodInfo |
ResolveTreeModelMethod "getProperty" o = ObjectGetPropertyMethodInfo |
ResolveTreeModelMethod "getQdata" o = ObjectGetQdataMethodInfo |
ResolveTreeModelMethod "getStringFromIter" o = TreeModelGetStringFromIterMethodInfo |
ResolveTreeModelMethod "getValue" o = TreeModelGetValueMethodInfo |
ResolveTreeModelMethod "setData" o = ObjectSetDataMethodInfo |
ResolveTreeModelMethod "setDataFull" o = ObjectSetDataFullMethodInfo |
ResolveTreeModelMethod "setProperty" o = ObjectSetPropertyMethodInfo |
ResolveTreeModelMethod l o = MethodResolutionFailed l o :: Type |

data TreeModelFilterNewMethodInfo Source #

#### Instances

Instances details

(signature ~ (Maybe TreePath -> m TreeModel), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelFilterNewMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelFilterNewMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelForeachMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeModelForeachFunc -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelForeachMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelForeachMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetColumnTypeMethodInfo Source #

#### Instances

Instances details

(signature ~ (Int32 -> m GType), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetColumnTypeMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetColumnTypeMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetFlagsMethodInfo Source #

#### Instances

Instances details

(signature ~ m [TreeModelFlags], MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetFlagsMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetFlagsMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetIterFirstMethodInfo Source #

#### Instances

Instances details

(signature ~ m (Bool, TreeIter), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetIterFirstMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetIterFirstMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetIterFromStringMethodInfo Source #

#### Instances

Instances details

(signature ~ (Text -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetIterFromStringMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetIterFromStringMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetIterMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreePath -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetIterMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetIterMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetNColumnsMethodInfo Source #

#### Instances

Instances details

(signature ~ m Int32, MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetNColumnsMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetNColumnsMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetPathMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m TreePath), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetPathMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetPathMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetStringFromIterMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m Text), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetStringFromIterMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetStringFromIterMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelGetValueMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> Int32 -> m GValue), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelGetValueMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelGetValueMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelIterChildrenMethodInfo Source #

#### Instances

Instances details

(signature ~ (Maybe TreeIter -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterChildrenMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelIterChildrenMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelIterHasChildMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m Bool), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterHasChildMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelIterHasChildMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelIterNChildrenMethodInfo Source #

#### Instances

Instances details

(signature ~ (Maybe TreeIter -> m Int32), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterNChildrenMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelIterNChildrenMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelIterNextMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m Bool), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterNextMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelIterNextMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelIterNthChildMethodInfo Source #

#### Instances

Instances details

(signature ~ (Maybe TreeIter -> Int32 -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterNthChildMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelIterNthChildMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelIterParentMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m (Bool, TreeIter)), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterParentMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelIterParentMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelIterPreviousMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m Bool), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelIterPreviousMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelIterPreviousMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelRefNodeMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRefNodeMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelRefNodeMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelRowChangedMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreePath -> TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowChangedMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelRowChangedMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelRowChangedSignalInfo Source #

#### Instances

Instances details

SignalInfo TreeModelRowChangedSignalInfo |

Instance details

Defined in GI.Gtk.Interfaces.TreeModel

Associated Types

type HaskellCallbackType TreeModelRowChangedSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowChangedSignalInfo = TreeModelRowChangedCallback

Methods

connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowChangedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId Source #

dbgSignalInfo :: Maybe ResolvedSymbolInfo Source #

type HaskellCallbackType TreeModelRowChangedSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowChangedSignalInfo = TreeModelRowChangedCallback

data TreeModelRowDeletedMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreePath -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowDeletedMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelRowDeletedMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelRowDeletedSignalInfo Source #

#### Instances

Instances details

SignalInfo TreeModelRowDeletedSignalInfo |

Instance details

Defined in GI.Gtk.Interfaces.TreeModel

Associated Types

type HaskellCallbackType TreeModelRowDeletedSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowDeletedSignalInfo = TreeModelRowDeletedCallback

Methods

connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowDeletedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId Source #

dbgSignalInfo :: Maybe ResolvedSymbolInfo Source #

type HaskellCallbackType TreeModelRowDeletedSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowDeletedSignalInfo = TreeModelRowDeletedCallback

data TreeModelRowHasChildToggledMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreePath -> TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowHasChildToggledMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelRowHasChildToggledMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelRowHasChildToggledSignalInfo Source #

#### Instances

Instances details

SignalInfo TreeModelRowHasChildToggledSignalInfo |

Instance details

Defined in GI.Gtk.Interfaces.TreeModel

Associated Types

type HaskellCallbackType TreeModelRowHasChildToggledSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowHasChildToggledSignalInfo = TreeModelRowHasChildToggledCallback

Methods

connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowHasChildToggledSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId Source #

dbgSignalInfo :: Maybe ResolvedSymbolInfo Source #

type HaskellCallbackType TreeModelRowHasChildToggledSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowHasChildToggledSignalInfo = TreeModelRowHasChildToggledCallback

data TreeModelRowInsertedMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreePath -> TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowInsertedMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelRowInsertedMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelRowInsertedSignalInfo Source #

#### Instances

Instances details

SignalInfo TreeModelRowInsertedSignalInfo |

Instance details

Defined in GI.Gtk.Interfaces.TreeModel

Associated Types

type HaskellCallbackType TreeModelRowInsertedSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowInsertedSignalInfo = TreeModelRowInsertedCallback

Methods

connectSignal :: GObject o => o -> (o -> HaskellCallbackType TreeModelRowInsertedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId Source #

dbgSignalInfo :: Maybe ResolvedSymbolInfo Source #

type HaskellCallbackType TreeModelRowInsertedSignalInfo |
Instance details Defined in GI.Gtk.Interfaces.TreeModel type HaskellCallbackType TreeModelRowInsertedSignalInfo = TreeModelRowInsertedCallback

data TreeModelRowsReorderedMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreePath -> Maybe TreeIter -> [Int32] -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelRowsReorderedMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelRowsReorderedMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data TreeModelUnrefNodeMethodInfo Source #

#### Instances

Instances details

(signature ~ (TreeIter -> m ()), MonadIO m, IsTreeModel a) => OverloadedMethod TreeModelUnrefNodeMethodInfo a signature |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethod :: a -> signature Source #
OverloadedMethodInfo TreeModelUnrefNodeMethodInfo (a :: Type) |
Instance details Defined in GI.Gtk.Interfaces.TreeModel Methods overloadedMethodInfo :: Maybe ResolvedSymbolInfo Source #

data ColumnId row ty Source #

The type of a tree column.

#### Instances

Instances details

Show (ColumnId row ty) Source # |
Instance details Defined in Data.GI.Gtk.ModelView.TreeModel Methods showsPrec :: Int -> ColumnId row ty -> ShowS Source # show :: ColumnId row ty -> String Source # showList :: [ColumnId row ty] -> ShowS Source #
Eq (ColumnId row ty) Source # |
Instance details Defined in Data.GI.Gtk.ModelView.TreeModel Methods (==) :: ColumnId row ty -> ColumnId row ty -> Bool Source # (/=) :: ColumnId row ty -> ColumnId row ty -> Bool Source #

# Constructors

makeColumnIdInt :: Int32 -> ColumnId row Int32 Source #

Create a `ColumnId` to extract an integer.

makeColumnIdBool :: Int32 -> ColumnId row Bool Source #

Create a `ColumnId` to extract an Boolean.

makeColumnIdString :: Int32 -> ColumnId row Text Source #

Create a `ColumnId` to extract an string.

makeColumnIdPixbuf :: Int32 -> ColumnId row Pixbuf Source #

Create a `ColumnId` to extract an `Pixbuf`.

invalidColumnId :: ColumnId row ty Source #

The invalid `ColumnId`. Widgets use this value if no column id has been set.

# Methods

columnIdToNumber :: ColumnId row ty -> Int32 Source #

Convert a `ColumnId` to a bare number.

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.

treeModelGetValue Source #

Arguments

:: IsTreeModel self |
=> self |
-> TreeIter |
-> ColumnId row ty | `column` - The column to lookup the value at.
-> 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

# Orphan instances

Show (ColumnId row ty) Source # |
Instance details Methods showsPrec :: Int -> ColumnId row ty -> ShowS Source # show :: ColumnId row ty -> String Source # showList :: [ColumnId row ty] -> ShowS Source #
Eq (ColumnId row ty) Source # |
Instance details Methods (==) :: ColumnId row ty -> ColumnId row ty -> Bool Source # (/=) :: ColumnId row ty -> ColumnId row ty -> Bool Source #