gi-clutter-1.0.3: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Exported types

newtype ModelIter Source #

Memory-managed wrapper type.

Constructors

ModelIter (ManagedPtr ModelIter) 

Instances

Instances details
Eq ModelIter Source # 
Instance details

Defined in GI.Clutter.Objects.ModelIter

GObject ModelIter Source # 
Instance details

Defined in GI.Clutter.Objects.ModelIter

ManagedPtrNewtype ModelIter Source # 
Instance details

Defined in GI.Clutter.Objects.ModelIter

Methods

toManagedPtr :: ModelIter -> ManagedPtr ModelIter

TypedObject ModelIter Source # 
Instance details

Defined in GI.Clutter.Objects.ModelIter

Methods

glibType :: IO GType

HasParentTypes ModelIter Source # 
Instance details

Defined in GI.Clutter.Objects.ModelIter

IsGValue (Maybe ModelIter) Source #

Convert ModelIter to and from GValue. See toGValue and fromGValue.

Instance details

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 # 
Instance details

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

Instances details
(GObject o, IsDescendantOf ModelIter o) => IsModelIter o Source # 
Instance details

Defined in GI.Clutter.Objects.ModelIter

toModelIter :: (MonadIO m, IsModelIter o) => o -> m ModelIter Source #

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

Methods

copy

modelIterCopy Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> m ModelIter

Returns: a copy of the iterator, or Nothing

Deprecated: (Since version 1.24)Use ListModel instead

Copies the passed iterator.

Since: 0.8

getModel

modelIterGetModel Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> m Model

Returns: a pointer to a Model.

Deprecated: (Since version 1.24)Use ListModel instead

Retrieves a pointer to the Model that this iter is part of.

Since: 0.6

getRow

modelIterGetRow Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> m Word32

Returns: the position of the iter in the model

Deprecated: (Since version 1.24)Use ListModel instead

Retrieves the position of the row that the iter points to.

Since: 0.6

getValue

modelIterGetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> Word32

column: column number to retrieve the value from

-> 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

modelIterIsFirst Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> m Bool

Returns: TRUE if iter is the first iter in the filtered model

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

modelIterIsLast Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> m Bool

Returns: TRUE if iter is the last iter in the filtered model.

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

modelIterNext Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> 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

modelIterPrev Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> 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

modelIterSetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsModelIter a) 
=> a

iter: a ModelIter

-> Word32

column: column number to retrieve the value from

-> GValue

value: new value for the cell

-> 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 ]