Model
Object Hierarchy:
Description:
public abstract class Model :
Object,
Scriptable
Class for Model instances.
Namespace: Clutter
Package: clutter-1.0
Content:
Properties:
Creation methods:
Methods:
-
public void append (...)
Creates and appends a new row to the Model,
setting the row values upon creation. For example, to append a new row where column 0 is type G_TYPE_INT and column 1
is of type
typeof (BusName):
-
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 model.
-
public bool filter_row (uint row)
Checks whether row should be filtered or not using the filtering function set on
model.
-
public void foreach (ModelForeachFunc func)
Calls func for each row in the model.
-
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 model has a filter in place, set using
set_filter
-
public ModelIter get_first_iter ()
Retrieves a ModelIter representing the
first non-filtered row in model.
-
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 model.
-
public virtual uint get_n_columns ()
Retrieves the number of columns inside model.
-
public virtual uint get_n_rows ()
Retrieves the number of rows inside model, 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 model.
-
public void insert (uint row, ...)
Inserts a new row to the Model at row
, setting the row values upon creation. For example, to insert a new row at index 100, where column 0 is type
G_TYPE_INT and column 1 is of type
typeof (BusName):
-
public virtual weak 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. The type of
value must be convertable to the type of the column. If the row does not exist then it is created.
-
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. For example, to prepend a new row where column 0 is type G_TYPE_INT and column 1
is of type
typeof (BusName):
-
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 model. This function should only be used by subclasses of
Model.
-
public void set_filter (owned ModelFilterFunc? func)
Filters the model 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 model using the given sorting function.
-
public void set_sorting_column (int column)
Sets the model to sort by column. If column is a negative value the sorting
column will be unset.
-
public void set_types (Type[] types)
Sets the types of the columns inside a Model.
Signals: