Model
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_model_get_type ()" ) ]
[
Version ( deprecated =
true , deprecated_since =
"1.24" , since =
"0.6" ) ]
public abstract class Model :
Object,
Scriptable
Warning: Model is deprecated since 1.24.
Base class for list models.
The Model structure contains only private data and should be manipulated using the provided API.
Content:
Properties:
Creation methods:
Methods:
- public void @foreach (ModelForeachFunc func)
Calls func
for each row in the model.
- public void append (...)
Creates and appends a new row to the Model
, setting the row values upon creation.
- public void appendv (uint[] columns, Value[] values)
Creates and appends a new row to the Model
, setting the row values for the given columns
upon creation.
- public bool filter_iter (ModelIter iter)
Checks whether the row pointer by iter
should be filtered or
not using the filtering function set on this.
- public bool filter_row (uint row)
Checks whether row
should be filtered or not using the
filtering function set on this.
- public virtual unowned string get_column_name (uint column)
Retrieves the name of the column
- public virtual Type get_column_type (uint column)
Retrieves the type of the column
.
- public bool get_filter_set ()
Returns whether the this has a filter in
place, set using set_filter
- public ModelIter get_first_iter ()
Retrieves a
ModelIter representing the first non-filtered row in
this.
- public virtual ModelIter get_iter_at_row (uint row)
Retrieves a
ModelIter representing the row at the given index.
- public ModelIter get_last_iter ()
Retrieves a
ModelIter representing the last non-filtered row in
this.
- public virtual uint get_n_columns ()
Retrieves the number of columns inside this
.
- public virtual uint get_n_rows ()
Retrieves the number of rows inside this,
eventually taking into account any filtering function set using
set_filter.
- public int get_sorting_column ()
Retrieves the number of column used for sorting the
this.
- public void insert (uint row, ...)
Inserts a new row to the Model at
row
, setting the row values upon creation.
- public virtual unowned ModelIter insert_row (int index_)
- public void insert_value (uint row, uint column, Value value)
Sets the data in the cell specified by iter
and column
.
- public void insertv (uint row, uint[] columns, Value[] values)
Inserts data at row
into the Model
, setting the row values for the given columns
upon creation.
- public void prepend (...)
Creates and prepends a new row to the Model
, setting the row values upon creation.
- public void prependv (uint[] columns, Value[] values)
Creates and prepends a new row to the Model
, setting the row values for the given columns
upon creation.
- public void remove (uint row)
Removes the row at the given position from the model.
- public virtual void remove_row (uint row)
- public void resort ()
Force a resort on the this.
- public void set_filter (owned ModelFilterFunc? func)
Filters the this using the given filtering
function.
- public void set_names (string[] names)
Assigns a name to the columns of a Model
.
- public void set_sort (int column, owned ModelSortFunc? func)
Sorts this using the given sorting
function.
- public void set_sorting_column (int column)
Sets the model to sort by column
.
- public void set_types (Type[] types)
Sets the types of the columns inside a Model
.
Signals:
- public virtual signal void filter_changed ()
The filter_changed signal is emitted when a new
filter has been applied
- public virtual signal void row_added (ModelIter iter)
The row_added signal is emitted when a new row
has been added.
- public virtual signal void row_changed (ModelIter iter)
The
row_removed signal is emitted when a row has been changed.
- public virtual signal void row_removed (ModelIter iter)
The row_removed signal is emitted when a row has
been removed.
- public virtual signal void sort_changed ()
The sort_changed signal is emitted after the
model has been sorted
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Clutter.Scriptable