Gtk.TreeIter¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
stamp |
r/w |
a unique stamp to catch invalid iterators |
|
user_data |
r/w |
model-specific data |
|
user_data2 |
r/w |
model-specific data |
|
user_data3 |
r/w |
model-specific data |
Methods¶
|
|
|
Details¶
- class Gtk.TreeIter¶
The
Gtk.TreeIter
is the primary structure for accessing aGtk.TreeModel
. Models are expected to put a unique integer in the stamp member, and put model-specific data in the three user_data members.- copy()[source]¶
- Returns:
a newly-allocated copy of self
- Return type:
Creates a dynamically allocated tree iterator as a copy of self.
This function is not intended for use in applications, because you can just copy the structs by value (
GtkTreeIter new_iter = iter;
). You must free this iter withGtk.TreeIter.free
().
- free()[source]¶
Frees an iterator that has been allocated by
Gtk.TreeIter.copy
().This function is mainly used for language bindings.