Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkTreeModel |
Interface : | TreeModel |
Implementations: | Gtk.ListStore, Gtk.TreeModelFilter, Gtk.TreeModelSort, Gtk.TreeStore |
iterator
0refers to the root
2:4refers to the fifth child of
3:2:5. While the first method shown is
None |
Method / Constructor | Defined By | |
---|---|---|
filter_new
(TreePath root)
:
Gtk.TreeModel
Creates a new GtkTreeModel, with child_model as the child_model
and root as the virtual root.
Creates a new GtkTreeModel, with child_model as the child_model
and root as the virtual root.
|
Gtk.TreeModel | |
Calls func on each node in model in a depth-first fashion.
Calls func on each node in model in a depth-first fashion.
If func returns TRUE, then the tree ceases to be walked, and gtk_tree_model_foreach() returns.
|
Gtk.TreeModel | |
Gtk.TreeModel | ||
get_flags
()
:
Gtk.TreeModelFlags
Returns a set of flags supported by this interface.
Returns a set of flags supported by this interface.
The flags are a bitwise combination of GtkTreeModelFlags. The flags supported should not change during the lifetime of the tree_model.
|
Gtk.TreeModel | |
Sets iter to a valid iterator pointing to path.
Sets iter to a valid iterator pointing to path.
|
Gtk.TreeModel | |
Initializes iter with the first iterator in the tree
(the one at the path "0") and returns TRUE.
Initializes iter with the first iterator in the tree
(the one at the path "0") and returns TRUE. Returns FALSE if the tree is empty.
|
Gtk.TreeModel | |
Sets iter to a valid iterator pointing to path_string, if it
exists.
Sets iter to a valid iterator pointing to path_string, if it
exists. Otherwise, iter is left invalid and FALSE is returned.
|
Gtk.TreeModel | |
get_n_columns
()
:
gint32
Returns the number of columns supported by tree_model.
Returns the number of columns supported by tree_model.
|
Gtk.TreeModel | |
get_path
(TreeIter iter)
:
Gtk.TreePath
Returns a newly-created GtkTreePath referenced by iter.
Returns a newly-created GtkTreePath referenced by iter.
This path should be freed with gtk_tree_path_free().
|
Gtk.TreeModel | |
Generates a string representation of the iter.
Generates a string representation of the iter.
This string is a ':' separated list of numbers. For example, "4:10:0:3" would be an acceptable return value for this string. Must be freed with g_free().
|
Gtk.TreeModel | |
Initializes and sets value to that at column.
Initializes and sets value to that at column.
When done with value, g_value_unset() needs to be called to free any allocated memory.
|
Gtk.TreeModel | |
Sets iter to point to the first child of parent.
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.TreeModel | |
Returns TRUE if iter has children, FALSE otherwise.
Returns TRUE if iter has children, FALSE otherwise.
|
Gtk.TreeModel | |
Returns the number of children that iter has.
Returns the number of children that iter has.
As a special case, if iter is NULL, then the number of toplevel nodes is returned.
|
Gtk.TreeModel | |
Sets iter to point to the node following it at the current level.
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.
|
Gtk.TreeModel | |
Sets iter to be the child of parent, using the given index.
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, will remain a valid node after this function has been called. As a special case, if parent is NULL, then the nth root node is set.
|
Gtk.TreeModel | |
Sets iter to be the parent of child.
Sets iter to be the parent of child.
If child is at the toplevel, and doesn't have a parent, then called.
|
Gtk.TreeModel | |
Sets iter to point to the previous node at the current level.
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.
|
Gtk.TreeModel | |
ref_node
(TreeIter iter)
:
none
Lets the tree ref the node.
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). 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.
|
Gtk.TreeModel | |
Emits the GtkTreeModel::row-changed signal on tree_model.
Emits the GtkTreeModel::row-changed signal on tree_model.
|
Gtk.TreeModel | |
row_deleted
(TreePath path)
:
none
Emits the GtkTreeModel::row-deleted signal on tree_model.
Emits the GtkTreeModel::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.
|
Gtk.TreeModel | |
Emits the GtkTreeModel::row-has-child-toggled signal on
state of a node changes.
Emits the GtkTreeModel::row-has-child-toggled signal on
state of a node changes.
|
Gtk.TreeModel | |
Emits the GtkTreeModel::row-inserted signal on tree_model.
Emits the GtkTreeModel::row-inserted signal on tree_model.
|
Gtk.TreeModel | |
sort_new_with_model
()
:
Gtk.TreeModel
Creates a new GtkTreeModel, with child_model as the child model.
Creates a new GtkTreeModel, with child_model as the child model.
|
Gtk.TreeModel | |
unref_node
(TreeIter iter)
:
none
Lets the tree unref the node.
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.
|
Gtk.TreeModel |
Event | Defined By | |
---|---|---|
This signal is emitted when a row in the model has changed.
This signal is emitted when a row in the model has changed.
|
Gtk.TreeModel | |
This signal is emitted when a row has been deleted.
This signal is emitted when a row has been deleted.
Note that no iterator is passed to the signal handler, since the row is already 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.
|
Gtk.TreeModel | |
This signal is emitted when a row has gotten the first child
row or lost its last child row.
This signal is emitted when a row has gotten the first child
row or lost its last child row.
|
Gtk.TreeModel | |
This signal is emitted when a new row has been inserted in
the model.
This signal is emitted when a new row has been inserted in
the model. Note that the row may still be empty at this point, since it is a common pattern to first insert an empty row, and then fill it with the desired values.
|
Gtk.TreeModel |
Class / Namespace | Method / Signal / Properties |
---|---|
EvinceDocument.DocumentFonts
Method |
fill_model
(TreeModel model)
:
none
|
GnomeBluetooth.Client
Method |
get_adapter_model
()
:
Gtk.TreeModel
|
GnomeBluetooth.Client
Method |
get_device_filter_model
(Proxy adapter, Function func, void* data, Function destroy)
:
Gtk.TreeModel
|
GnomeBluetooth.Client
Method |
get_device_model
(Proxy adapter)
:
Gtk.TreeModel
|
GnomeBluetooth.Client
Method |
|
GnomeBluetooth.Client
Method |
get_model
()
:
Gtk.TreeModel
|
Gtk
Method |
Gtk.tree_set_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
gboolean
Sets selection data of target type GTK_TREE_MODEL_ROW.
|
Gtk.CellArea
Signal |
apply_attributes
(CellArea self, TreeModel model, TreeIter iter, gboolean is_expander, gboolean is_expanded)
:
none
This signal is emitted whenever applying attributes to area from model
|
Gtk.CellArea
Method |
apply_attributes
(TreeModel tree_model, TreeIter iter, gboolean is_expander, gboolean is_expanded)
:
none
Applies any connected attributes to the renderers in
|
Gtk.CellRendererCombo
Property |
model : Gtk.TreeModel
Holds a tree model containing the possible values for the combo box.
|
Gtk.CellView
Property |
model : Gtk.TreeModel
The model for cell view
since 2.10 |
Gtk.CellView
Method |
get_model
()
:
Gtk.TreeModel
Returns the model for cell_view.
|
Gtk.CellView
Method |
set_model
(TreeModel model)
:
none
Sets the model for cell_view.
|
Gtk.ComboBox
Property |
model : Gtk.TreeModel
The model from which the combo box takes the values shown
in the list. |
Gtk.ComboBox
Method |
Create a new Gtk.ComboBox
|
Gtk.ComboBox
Method |
Create a new Gtk.ComboBox
|
Gtk.ComboBox
Method |
get_model
()
:
Gtk.TreeModel
Returns the GtkTreeModel which is acting as data source for combo_box.
|
Gtk.ComboBox
Method |
set_model
(TreeModel model)
:
none
Sets the model used by combo_box to be model.
|
Gtk.EntryCompletion
Property |
model : Gtk.TreeModel
|
Gtk.EntryCompletion
Signal |
Gets emitted when a match from the cursor is on a match
of the list. |
Gtk.EntryCompletion
Signal |
Gets emitted when a match from the list is selected.
|
Gtk.EntryCompletion
Method |
get_model
()
:
Gtk.TreeModel
Returns the model the GtkEntryCompletion is using as data source.
|
Gtk.EntryCompletion
Method |
set_model
(TreeModel model)
:
none
Sets the model for a GtkEntryCompletion.
|
Gtk.IconView
Property |
model : Gtk.TreeModel
|
Gtk.IconView
Method |
Create a new Gtk.IconView
|
Gtk.IconView
Method |
get_model
()
:
Gtk.TreeModel
Returns the model the GtkIconView is based on.
|
Gtk.IconView
Method |
set_model
(TreeModel model)
:
none
Sets the model for a GtkIconView.
|
Gtk.TreeModelFilter
Property |
child_model : Gtk.TreeModel
|
Gtk.TreeModelFilter
Method |
get_model
()
:
Gtk.TreeModel
Returns a pointer to the child model of filter.
|
Gtk.TreeModelSort
Property |
model : Gtk.TreeModel
|
Gtk.TreeModelSort
Method |
get_model
()
:
Gtk.TreeModel
Returns the model the GtkTreeModelSort is sorting.
|
Gtk.TreeRowReference
Method |
Create a new Gtk.TreeRowReference
|
Gtk.TreeRowReference
Method |
new Gtk.TreeRowReference.proxy
(Object proxy, TreeModel model, TreePath path)
:
Gtk.TreeRowReference
Create a new Gtk.TreeRowReference
|
Gtk.TreeRowReference
Method |
get_model
()
:
Gtk.TreeModel
Returns the model that the row reference is monitoring.
|
Gtk.TreeView
Property |
model : Gtk.TreeModel
|
Gtk.TreeView
Method |
Create a new Gtk.TreeView
|
Gtk.TreeView
Method |
get_model
()
:
Gtk.TreeModel
Returns the model the GtkTreeView is based on.
|
Gtk.TreeView
Method |
set_model
(TreeModel model)
:
none
Sets the model for a GtkTreeView.
|
Gtk.TreeViewColumn
Method |
cell_set_cell_data
(TreeModel tree_model, TreeIter iter, gboolean is_expander, gboolean is_expanded)
:
none
Sets the cell renderer based on the tree_model and iter.
|