Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- newtype TreeIter = TreeIter (ManagedPtr TreeIter)
- newZeroTreeIter :: MonadIO m => m TreeIter
- treeIterCopy :: (HasCallStack, MonadIO m) => TreeIter -> m TreeIter
- treeIterFree :: (HasCallStack, MonadIO m) => TreeIter -> m ()
- getTreeIterStamp :: MonadIO m => TreeIter -> m Int32
- setTreeIterStamp :: MonadIO m => TreeIter -> Int32 -> m ()
- clearTreeIterUserData :: MonadIO m => TreeIter -> m ()
- getTreeIterUserData :: MonadIO m => TreeIter -> m (Ptr ())
- setTreeIterUserData :: MonadIO m => TreeIter -> Ptr () -> m ()
- clearTreeIterUserData2 :: MonadIO m => TreeIter -> m ()
- getTreeIterUserData2 :: MonadIO m => TreeIter -> m (Ptr ())
- setTreeIterUserData2 :: MonadIO m => TreeIter -> Ptr () -> m ()
- clearTreeIterUserData3 :: MonadIO m => TreeIter -> m ()
- getTreeIterUserData3 :: MonadIO m => TreeIter -> m (Ptr ())
- setTreeIterUserData3 :: MonadIO m => TreeIter -> Ptr () -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq TreeIter Source # | |
GBoxed TreeIter Source # | |
Defined in GI.Gtk.Structs.TreeIter | |
ManagedPtrNewtype TreeIter Source # | |
Defined in GI.Gtk.Structs.TreeIter toManagedPtr :: TreeIter -> ManagedPtr TreeIter | |
TypedObject TreeIter Source # | |
Defined in GI.Gtk.Structs.TreeIter | |
HasParentTypes TreeIter Source # | |
Defined in GI.Gtk.Structs.TreeIter | |
tag ~ 'AttrSet => Constructible TreeIter tag Source # | |
IsGValue (Maybe TreeIter) Source # | Convert |
Defined in GI.Gtk.Structs.TreeIter gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TreeIter -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TreeIter) | |
type ParentTypes TreeIter Source # | |
Defined in GI.Gtk.Structs.TreeIter |
Methods
Click to display all available methods, including inherited ones
copy
:: (HasCallStack, MonadIO m) | |
=> TreeIter |
|
-> m TreeIter | Returns: a newly-allocated copy of |
Creates a dynamically allocated tree iterator as a copy of iter
.
This function is not intended for use in applications,
because you can just copy the structs by value
(GtkTreeIter new_iter = iter;
).
You must free this iter with treeIterFree
.
free
:: (HasCallStack, MonadIO m) | |
=> TreeIter |
|
-> m () |
Frees an iterator that has been allocated by treeIterCopy
.
This function is mainly used for language bindings.
Properties
stamp
a unique stamp to catch invalid iterators
getTreeIterStamp :: MonadIO m => TreeIter -> m Int32 Source #
Get the value of the “stamp
” field.
When overloading is enabled, this is equivalent to
get
treeIter #stamp
setTreeIterStamp :: MonadIO m => TreeIter -> Int32 -> m () Source #
Set the value of the “stamp
” field.
When overloading is enabled, this is equivalent to
set
treeIter [ #stamp:=
value ]
userData
model-specific data
clearTreeIterUserData :: MonadIO m => TreeIter -> m () Source #
Set the value of the “user_data
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#userData
getTreeIterUserData :: MonadIO m => TreeIter -> m (Ptr ()) Source #
Get the value of the “user_data
” field.
When overloading is enabled, this is equivalent to
get
treeIter #userData
setTreeIterUserData :: MonadIO m => TreeIter -> Ptr () -> m () Source #
Set the value of the “user_data
” field.
When overloading is enabled, this is equivalent to
set
treeIter [ #userData:=
value ]
userData2
model-specific data
clearTreeIterUserData2 :: MonadIO m => TreeIter -> m () Source #
Set the value of the “user_data2
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#userData2
getTreeIterUserData2 :: MonadIO m => TreeIter -> m (Ptr ()) Source #
Get the value of the “user_data2
” field.
When overloading is enabled, this is equivalent to
get
treeIter #userData2
setTreeIterUserData2 :: MonadIO m => TreeIter -> Ptr () -> m () Source #
Set the value of the “user_data2
” field.
When overloading is enabled, this is equivalent to
set
treeIter [ #userData2:=
value ]
userData3
model-specific data
clearTreeIterUserData3 :: MonadIO m => TreeIter -> m () Source #
Set the value of the “user_data3
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#userData3
getTreeIterUserData3 :: MonadIO m => TreeIter -> m (Ptr ()) Source #
Get the value of the “user_data3
” field.
When overloading is enabled, this is equivalent to
get
treeIter #userData3
setTreeIterUserData3 :: MonadIO m => TreeIter -> Ptr () -> m () Source #
Set the value of the “user_data3
” field.
When overloading is enabled, this is equivalent to
set
treeIter [ #userData3:=
value ]