Clutter.ModelIter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The model to which the iterator belongs to |
||
r/w |
The row to which the iterator points to |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.ModelIter(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Base class for list models iters. The
Clutter.ModelIter
structure contains only private data and should be manipulated using the provided API.New in version 0.6.
Deprecated since version 1.24: Use custom iterators for
Gio.ListModel
- copy()¶
- Returns:
a copy of the iterator, or
None
- Return type:
Copies the passed iterator.
New in version 0.8.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- get_model()¶
- Returns:
a pointer to a
Clutter.Model
.- Return type:
Retrieves a pointer to the
Clutter.Model
that this iter is part of.New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- get_row()¶
- Returns:
the position of the self in the model
- Return type:
Retrieves the position of the row that the self points to.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- get_value(column)¶
- Parameters:
column (
int
) – column number to retrieve the value from- Returns:
an empty
GObject.Value
to set- Return type:
value:
GObject.Value
Sets an initializes value to that at column. When done with value,
GObject.Value.unset
() needs to be called to free any allocated memory.New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- is_first()¶
-
Gets whether the current iterator is at the beginning of the model to which it belongs.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- is_last()¶
-
Gets whether the iterator is at the end of the model to which it belongs.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- next()¶
- Returns:
The passed iterator, updated to point at the next row in the model.
- Return type:
Updates the self to point at the next position in the model. The model implementation should take into account the presence of a filter function.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- prev()¶
- Returns:
The passed iterator, updated to point at the previous row in the model.
- Return type:
Sets the self to point at the previous position in the model. The model implementation should take into account the presence of a filter function.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- set_value(column, value)¶
- Parameters:
column (
int
) – column number to retrieve the value fromvalue (
GObject.Value
) – new value for the cell
Sets the data in the cell specified by self and column. The type of value must be convertable to the type of the column.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_copy() virtual¶
- Returns:
a copy of the iterator, or
None
- Return type:
Copies the passed iterator.
New in version 0.8.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_get_model() virtual¶
- Returns:
a pointer to a
Clutter.Model
.- Return type:
Retrieves a pointer to the
Clutter.Model
that this iter is part of.New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_get_row() virtual¶
- Returns:
the position of the iter in the model
- Return type:
Retrieves the position of the row that the iter points to.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_get_value(column) virtual¶
- Parameters:
column (
int
) – column number to retrieve the value from- Returns:
an empty
GObject.Value
to set- Return type:
value:
GObject.Value
Sets an initializes value to that at column. When done with value,
GObject.Value.unset
() needs to be called to free any allocated memory.New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_is_first() virtual¶
-
Gets whether the current iterator is at the beginning of the model to which it belongs.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_is_last() virtual¶
-
Gets whether the iterator is at the end of the model to which it belongs.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_next() virtual¶
- Returns:
The passed iterator, updated to point at the next row in the model.
- Return type:
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.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_prev() virtual¶
- Returns:
The passed iterator, updated to point at the previous row in the model.
- Return type:
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.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- do_set_value(column, value) virtual¶
- Parameters:
column (
int
) – column number to retrieve the value fromvalue (
GObject.Value
) – new value for the cell
Sets the data in the cell specified by iter and column. The type of value must be convertable to the type of the column.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
Property Details¶
- Clutter.ModelIter.props.model¶
- Name:
model
- Type:
- Default Value:
- Flags:
A reference to the
Clutter.Model
that this iter belongs to.New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead
- Clutter.ModelIter.props.row¶
-
The row number to which this iter points to.
New in version 0.6.
Deprecated since version 1.24: Use
Gio.ListModel
instead