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-struct
Virtualvfunc_Returns the number of columns supported by tree_model.
Virtualvfunc_Returns a newly-created Gtk.TreePath-struct referenced by iter.
This path should be freed with gtk_tree_path_free().
the Gtk.TreeIter-struct
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-struct
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-struct, or null
Virtualvfunc_Returns true if iter has children, false otherwise.
the Gtk.TreeIter-struct 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-struct, or null
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-struct
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-struct to get the child from, or null.
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-struct
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-struct
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-struct
Virtualvfunc_Emits the Gtk.TreeModel.SignalSignatures.row_changed | Gtk.TreeModel::row-changed signal on tree_model.
a Gtk.TreePath-struct pointing to the changed row
a valid Gtk.TreeIter-struct pointing to the changed row
Virtualvfunc_Emits the Gtk.TreeModel.SignalSignatures.row_deleted | Gtk.TreeModel::row-deleted signal on tree_model.
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-struct pointing to the previous location of the deleted row
Virtualvfunc_Emits the Gtk.TreeModel.SignalSignatures.row_has_child_toggled | Gtk.TreeModel::row-has-child-toggled signal on
tree_model. This should be called by models after the child
state of a node changes.
a Gtk.TreePath-struct pointing to the changed row
a valid Gtk.TreeIter-struct pointing to the changed row
Virtualvfunc_Emits the Gtk.TreeModel.SignalSignatures.row_inserted | Gtk.TreeModel::row-inserted signal on tree_model.
a Gtk.TreePath-struct pointing to the inserted row
a valid Gtk.TreeIter-struct 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-struct
Interface for implementing TreeModel. Contains only the virtual methods that need to be implemented.