Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Clutter.Objects.ModelIter
Description
Base class for list models iters. The ModelIter
structure
contains only private data and should be manipulated using the
provided API.
Since: 0.6
Synopsis
- newtype ModelIter = ModelIter (ManagedPtr ModelIter)
- class (GObject o, IsDescendantOf ModelIter o) => IsModelIter o
- toModelIter :: (MonadIO m, IsModelIter o) => o -> m ModelIter
- modelIterCopy :: (HasCallStack, MonadIO m, IsModelIter a) => a -> m ModelIter
- modelIterGetModel :: (HasCallStack, MonadIO m, IsModelIter a) => a -> m Model
- modelIterGetRow :: (HasCallStack, MonadIO m, IsModelIter a) => a -> m Word32
- modelIterGetValue :: (HasCallStack, MonadIO m, IsModelIter a) => a -> Word32 -> m GValue
- modelIterIsFirst :: (HasCallStack, MonadIO m, IsModelIter a) => a -> m Bool
- modelIterIsLast :: (HasCallStack, MonadIO m, IsModelIter a) => a -> m Bool
- modelIterNext :: (HasCallStack, MonadIO m, IsModelIter a) => a -> m ModelIter
- modelIterPrev :: (HasCallStack, MonadIO m, IsModelIter a) => a -> m ModelIter
- modelIterSetValue :: (HasCallStack, MonadIO m, IsModelIter a) => a -> Word32 -> GValue -> m ()
- clearModelIterModel :: (MonadIO m, IsModelIter o) => o -> m ()
- constructModelIterModel :: (IsModelIter o, MonadIO m, IsModel a) => a -> m (GValueConstruct o)
- getModelIterModel :: (MonadIO m, IsModelIter o) => o -> m Model
- setModelIterModel :: (MonadIO m, IsModelIter o, IsModel a) => o -> a -> m ()
- constructModelIterRow :: (IsModelIter o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getModelIterRow :: (MonadIO m, IsModelIter o) => o -> m Word32
- setModelIterRow :: (MonadIO m, IsModelIter o) => o -> Word32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq ModelIter Source # | |
GObject ModelIter Source # | |
Defined in GI.Clutter.Objects.ModelIter | |
ManagedPtrNewtype ModelIter Source # | |
Defined in GI.Clutter.Objects.ModelIter Methods toManagedPtr :: ModelIter -> ManagedPtr ModelIter | |
TypedObject ModelIter Source # | |
Defined in GI.Clutter.Objects.ModelIter | |
HasParentTypes ModelIter Source # | |
Defined in GI.Clutter.Objects.ModelIter | |
IsGValue (Maybe ModelIter) Source # | Convert |
Defined in GI.Clutter.Objects.ModelIter Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ModelIter -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ModelIter) | |
type ParentTypes ModelIter Source # | |
Defined in GI.Clutter.Objects.ModelIter type ParentTypes ModelIter = '[Object] |
class (GObject o, IsDescendantOf ModelIter o) => IsModelIter o Source #
Type class for types which can be safely cast to ModelIter
, for instance with toModelIter
.
Instances
(GObject o, IsDescendantOf ModelIter o) => IsModelIter o Source # | |
Defined in GI.Clutter.Objects.ModelIter |
toModelIter :: (MonadIO m, IsModelIter o) => o -> m ModelIter Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, copy, forceFloating, freezeNotify, getv, isFirst, isFloating, isLast, next, notify, notifyByPspec, prev, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getModel, getProperty, getQdata, getRow, getValue.
Setters
copy
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> m ModelIter | Returns: a copy of the iterator, or |
getModel
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> m Model | Returns: a pointer to a |
getRow
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> m Word32 | Returns: the position of the |
Deprecated: (Since version 1.24)Use ListModel
instead
Retrieves the position of the row that the iter
points to.
Since: 0.6
getValue
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> Word32 |
|
-> m GValue |
Deprecated: (Since version 1.24)Use ListModel
instead
Sets an initializes value
to that at column
. When done with value
,
valueUnset
needs to be called to free any allocated memory.
Since: 0.6
isFirst
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 1.24)Use ListModel
instead
Gets whether the current iterator is at the beginning of the model to which it belongs.
Since: 0.6
isLast
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 1.24)Use ListModel
instead
Gets whether the iterator is at the end of the model to which it belongs.
Since: 0.6
next
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> m ModelIter | Returns: The passed iterator, updated to point at the next row in the model. |
Deprecated: (Since version 1.24)Use ListModel
instead
Updates the iter
to point at the next position in the model.
The model implementation should take into account the presence of
a filter function.
Since: 0.6
prev
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> m ModelIter | Returns: The passed iterator, updated to point at the previous row in the model. |
Deprecated: (Since version 1.24)Use ListModel
instead
Sets the iter
to point at the previous position in the model.
The model implementation should take into account the presence of
a filter function.
Since: 0.6
setValue
Arguments
:: (HasCallStack, MonadIO m, IsModelIter a) | |
=> a |
|
-> Word32 |
|
-> GValue |
|
-> m () |
Deprecated: (Since version 1.24)Use ListModel
instead
Sets the data in the cell specified by iter
and column
. The type of
value
must be convertable to the type of the column.
Since: 0.6
Properties
model
A reference to the Model
that this iter belongs to.
Since: 0.6
clearModelIterModel :: (MonadIO m, IsModelIter o) => o -> m () Source #
Set the value of the “model
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#model
constructModelIterModel :: (IsModelIter o, MonadIO m, IsModel a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “model
” property. This is rarely needed directly, but it is used by new
.
getModelIterModel :: (MonadIO m, IsModelIter o) => o -> m Model Source #
Get the value of the “model
” property.
When overloading is enabled, this is equivalent to
get
modelIter #model
setModelIterModel :: (MonadIO m, IsModelIter o, IsModel a) => o -> a -> m () Source #
Set the value of the “model
” property.
When overloading is enabled, this is equivalent to
set
modelIter [ #model:=
value ]
row
The row number to which this iter points to.
Since: 0.6
constructModelIterRow :: (IsModelIter o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “row
” property. This is rarely needed directly, but it is used by new
.
getModelIterRow :: (MonadIO m, IsModelIter o) => o -> m Word32 Source #
Get the value of the “row
” property.
When overloading is enabled, this is equivalent to
get
modelIter #row
setModelIterRow :: (MonadIO m, IsModelIter o) => o -> Word32 -> m () Source #
Set the value of the “row
” property.
When overloading is enabled, this is equivalent to
set
modelIter [ #row:=
value ]