Virtualvfunc_Virtualvfunc_Returns true if the model has a default sort function. This is used
primarily by GtkTreeViewColumns in order to determine if a model can
go back to the default state, or not.
Virtualvfunc_Sets the default comparison function used when sorting to be sort_func.
If the current sort column id of sortable is
GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, then the model will sort using
this function.
If sort_func is null, then there will be no default comparison function.
This means that once the model has been sorted, it can’t go back to the
default state. In this case, when the current sort column id of sortable
is GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted.
The comparison function
Optionaldestroy: DestroyNotifyDestroy notifier of user_data
Virtualvfunc_Sets the current sort column to be sort_column_id. The sortable will
resort itself to reflect this change, after emitting a
Gtk.TreeSortable::sort-column-changed signal. sort_column_id may either be
a regular column id, or one of the following special values:
GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID: the default sort function
will be used, if it is set
GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID: no sorting will occur
Virtualvfunc_Sets the comparison function used when sorting to be sort_func. If the
current sort column id of sortable is the same as sort_column_id, then
the model will sort using this function.
the sort column id to set the function for
The comparison function
Optionaldestroy: DestroyNotifyDestroy notifier of user_data
Virtualvfunc_Emits a Gtk.TreeSortable::sort-column-changed signal on sortable.
Virtualvfunc_Virtualvfunc_Returns a set of flags supported by this interface.
The flags are a bitwise combination of Gtk.TreeModelFlags.
The flags supported should not change during the lifetime
of the tree_model.
Virtualvfunc_Sets iter to a valid iterator pointing to path.
If path does not exist, iter is set to an invalid
iterator and false is returned.
the Gtk.TreePath
Virtualvfunc_Returns the number of columns supported by tree_model.
Virtualvfunc_Returns a newly-created Gtk.TreePath referenced by iter.
This path should be freed with gtk_tree_path_free().
the Gtk.TreeIter
Virtualvfunc_Initializes and sets value to that at column.
When done with value, g_value_unset() needs to be called
to free any allocated memory.
the Gtk.TreeIter
the column to lookup the value at
Virtualvfunc_Sets iter to point to the first child of parent.
If parent has no children, false is returned and iter is
set to be invalid. parent will remain a valid node after this
function has been called.
If parent is null returns the first node, equivalent to
gtk_tree_model_get_iter_first (tree_model, iter);
Optionalparent: Gtk.TreeIterthe Gtk.TreeIter
Virtualvfunc_Returns true if iter has children, false otherwise.
the Gtk.TreeIter to test for children
Virtualvfunc_Returns the number of children that iter has.
As a special case, if iter is null, then the number
of toplevel nodes is returned.
Optionaliter: Gtk.TreeIterthe Gtk.TreeIter
Virtualvfunc_Sets iter to point to the node following it at the current level.
If there is no next iter, false is returned and iter is set
to be invalid.
the Gtk.TreeIter
Virtualvfunc_Sets iter to be the child of parent, using the given index.
The first index is 0. If n is too big, or parent has no children,
iter is set to an invalid iterator and false is returned. parent
will remain a valid node after this function has been called. As a
special case, if parent is null, then the n-th root node
is set.
the Gtk.TreeIter to get the child from
the index of the desired child
Virtualvfunc_Sets iter to be the parent of child.
If child is at the toplevel, and doesn’t have a parent, then
iter is set to an invalid iterator and false is returned.
child will remain a valid node after this function has been
called.
iter will be initialized before the lookup is performed, so child
and iter cannot point to the same memory location.
the Gtk.TreeIter
Virtualvfunc_Sets iter to point to the previous node at the current level.
If there is no previous iter, false is returned and iter is
set to be invalid.
the Gtk.TreeIter
Virtualvfunc_Lets the tree ref the node.
This is an optional method for models to implement. To be more specific, models may ignore this call as it exists primarily for performance reasons.
This function is primarily meant as a way for views to let caching models know when nodes are being displayed (and hence, whether or not to cache that node). Being displayed means a node is in an expanded branch, regardless of whether the node is currently visible in the viewport. For example, a file-system based model would not want to keep the entire file-hierarchy in memory, just the sections that are currently being displayed by every current view.
A model should be expected to be able to get an iter independent of its reffed state.
the Gtk.TreeIter
Virtualvfunc_Emits the ::row-changed signal on tree_model.
See Gtk.TreeModel::row-changed.
a Gtk.TreePath pointing to the changed row
a valid Gtk.TreeIter pointing to the changed row
Virtualvfunc_Emits the ::row-deleted signal on tree_model.
See Gtk.TreeModel::row-deleted.
This should be called by models after a row has been removed.
The location pointed to by path should be the location that
the row previously was at. It may not be a valid location anymore.
Nodes that are deleted are not unreffed, this means that any outstanding references on the deleted node should not be released.
a Gtk.TreePath pointing to the previous location of the deleted row
Virtualvfunc_Emits the ::row-has-child-toggled signal on tree_model.
See Gtk.TreeModel::row-has-child-toggled.
This should be called by models after the child state of a node changes.
a Gtk.TreePath pointing to the changed row
a valid Gtk.TreeIter pointing to the changed row
Virtualvfunc_Emits the ::row-inserted signal on tree_model.
See Gtk.TreeModel::row-inserted.
a Gtk.TreePath pointing to the inserted row
a valid Gtk.TreeIter pointing to the inserted row
Virtualvfunc_Lets the tree unref the node.
This is an optional method for models to implement.
To be more specific, models may ignore this call as it exists
primarily for performance reasons. For more information on what
this means, see gtk_tree_model_ref_node().
Please note that nodes that are deleted are not unreffed.
the Gtk.TreeIter
Interface for implementing TreeSortable. Contains only the virtual methods that need to be implemented.