Skip to content

Gtk.TreeIter

record (struct)

:::warning Deprecated since 4.10 This API is deprecated. :::

The GtkTreeIter is the primary structure for accessing a GtkTreeModel. Models are expected to put a unique integer in the stamp member, and put model-specific data in the three user_data members.

Methods

copy

def copy(self) -> TreeIter

:::warning Deprecated since 4.10 This API is deprecated. :::

Creates a dynamically allocated tree iterator as a copy of iter.

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 with TreeIter.free.

free

def free(self) -> None

:::warning Deprecated since 4.10 This API is deprecated. :::

Frees an iterator that has been allocated by TreeIter.copy.

This function is mainly used for language bindings.

Properties

stamp

stamp: int  # read/write

user_data

user_data: int  # read/write

user_data2

user_data2: int  # read/write

user_data3

user_data3: int  # read/write