GObject.Object
Clutter.Model
Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterModel |
Class : | Model |
Implements: | Clutter.Scriptable |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
filter_set : Boolean
read only
Whether the ClutterModel has a filter set This property is set to TRUE if a filter function has been set using clutter_model_set_filter()
Whether the ClutterModel has a filter set This property is set to TRUE if a filter function has been set using clutter_model_set_filter()
|
Clutter.Model | |
parent_instance : GObject.Object
read only
|
Clutter.Model | |
priv : Clutter.ModelPrivate
read only
|
Clutter.Model |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Model
(Object properties)
Create a new Clutter.Model
Create a new Clutter.Model
|
||
Creates and appends a new row to the ClutterModel, setting the row values for the given columns upon creation.
|
Clutter.Model | |
Checks whether the row pointer by iter should be filtered or not using the filtering function set on model.
Checks whether the row pointer by iter should be filtered or not using the filtering function set on model. This function should be used only by subclasses of ClutterModel.
|
Clutter.Model | |
Checks whether row should be filtered or not using the filtering function set on model.
|
Clutter.Model | |
Clutter.Model | ||
Clutter.Model | ||
Clutter.Model | ||
get_filter_set
()
:
Boolean
Returns whether the model has a filter in place, set using clutter_model_set_filter()
Returns whether the model has a filter in place, set using clutter_model_set_filter()
|
Clutter.Model | |
get_first_iter
()
:
Clutter.ModelIter
Retrieves a ClutterModelIter representing the first non-filtered row in model.
Retrieves a ClutterModelIter representing the first non-filtered row in model.
|
Clutter.Model | |
get_id
()
:
String
Retrieves the id of scriptable set using clutter_scriptable_set_id().
Retrieves the id of scriptable set using clutter_scriptable_set_id().
|
Clutter.Scriptable | |
get_iter_at_row
(Number row)
:
Clutter.ModelIter
Retrieves a ClutterModelIter representing the row at the given index.
Retrieves a ClutterModelIter representing the row at the given index. If a filter function has been set using clutter_model_set_filter() then the model implementation will return the first non filtered row.
|
Clutter.Model | |
get_last_iter
()
:
Clutter.ModelIter
Retrieves a ClutterModelIter representing the last non-filtered row in model.
Retrieves a ClutterModelIter representing the last non-filtered row in model.
|
Clutter.Model | |
get_n_columns
()
:
Number
Retrieves the number of columns inside model.
Retrieves the number of columns inside model.
|
Clutter.Model | |
get_n_rows
()
:
Number
Retrieves the number of rows inside model, eventually taking into account any filtering function set using clutter_model_set_filter().
Retrieves the number of rows inside model, eventually taking into account any filtering function set using clutter_model_set_filter().
|
Clutter.Model | |
get_sorting_column
()
:
Number
Retrieves the number of column used for sorting the model.
Retrieves the number of column used for sorting the model.
|
Clutter.Model | |
Sets the data in the cell specified by iter and column.
Sets the data in the cell specified by iter and column. The type of not exist then it is created.
|
Clutter.Model | |
Inserts data at row into the ClutterModel, setting the row values for the given columns upon creation.
Inserts data at row into the ClutterModel, setting the row values for the given columns upon creation.
|
Clutter.Model | |
Parses the passed JSON node.
Parses the passed JSON node. The implementation must set the type of the passed GValue pointer using g_value_init().
|
Clutter.Scriptable | |
Creates and prepends a new row to the ClutterModel, setting the row values for the given columns upon creation.
Creates and prepends a new row to the ClutterModel, setting the row values for the given columns upon creation.
|
Clutter.Model | |
remove
(Number row)
:
none
Removes the row at the given position from the model.
Removes the row at the given position from the model.
|
Clutter.Model | |
resort
()
:
none
Force a resort on the model.
Force a resort on the model. This function should only be used by subclasses of ClutterModel.
|
Clutter.Model | |
Overrides the common properties setting.
Overrides the common properties setting. The underlying virtual function should be used when implementing custom properties.
|
Clutter.Scriptable | |
Filters the model using the given filtering function.
|
Clutter.Model | |
set_id
(String id)
:
none
Sets id as the unique Clutter script it for this instance of ClutterScriptableIface.
Sets id as the unique Clutter script it for this instance of ClutterScriptableIface. This name can be used by user interface designer applications to define a unique name for an object constructable using the UI definition language parsed by ClutterScript.
|
Clutter.Scriptable | |
Assigns a name to the columns of a ClutterModel.
Assigns a name to the columns of a ClutterModel. This function is meant primarily for GObjects that inherit from ClutterModel, and should only be used when contructing a ClutterModel. It will not work after the initial creation of the ClutterModel.
|
Clutter.Model | |
Sorts model using the given sorting function.
|
Clutter.Model | |
set_sorting_column
(Number column)
:
none
Sets the model to sort by column.
Sets the model to sort by column. If column is a negative value the sorting column will be unset.
|
Clutter.Model | |
Sets the types of the columns inside a ClutterModel.
Sets the types of the columns inside a ClutterModel. This function is meant primarily for GObjects that inherit from ClutterModel, and should only be used when contructing a ClutterModel. It will not work after the initial creation of the ClutterModel.
|
Clutter.Model |
Event | Defined By | |
---|---|---|
filter_changed (Model self)
:
none
The ::filter-changed signal is emitted when a new filter has been applied
The ::filter-changed signal is emitted when a new filter has been applied
|
Clutter.Model | |
The ::row-added signal is emitted when a new row has been added.
The ::row-added signal is emitted when a new row has been added. The data on the row has already been set when the ::row-added signal has been emitted.
|
Clutter.Model | |
The ::row-removed signal is emitted when a row has been changed.
The ::row-removed signal is emitted when a row has been changed. The data on the row has already been updated when the ::row-changed signal has been emitted.
|
Clutter.Model | |
The ::row-removed signal is emitted when a row has been removed.
The ::row-removed signal is emitted when a row has been removed. The data on the row pointed by the passed iterator is still valid when the ::row-removed signal has been emitted.
|
Clutter.Model | |
sort_changed (Model self)
:
none
The ::sort-changed signal is emitted after the model has been sorted
The ::sort-changed signal is emitted after the model has been sorted
|
Clutter.Model |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter.ModelIter
Property |
model : Clutter.Model
A reference to the ClutterModel that this iter belongs to.
|
Clutter.ModelIter
Method |
get_model
()
:
Clutter.Model
Retrieves a pointer to the ClutterModel that this iter is part of.
|