TreeIter

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.

Constructors

this
this(GtkTreeIter* gtkTreeIter, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(TreeModelIF treeModel, string treePath)
this
this(TreeModelIF treeModel, TreePath treePath)
this
this()

creates a new tree iteractor. used TreeView.createIter and TreeView.append() to create iteractor for a tree or list

Members

Functions

copy
TreeIter copy(TreeIter iter)

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

getGrandParent
TreeIter getGrandParent()
getParent
TreeIter getParent()

Gets the parent of this iter

getStruct
void* getStruct()

the main Gtk struct as a void*

getTreeIterStruct
GtkTreeIter* getTreeIterStruct(bool transferOwnership)

Get the main Gtk struct

getTreePath
TreePath getTreePath()
getUserData
T getUserData()

setUserData and getUserData provide simple boxing around the userData field in the TreeIter struct.

getValue
void getValue(int column, Value value)

Get Value

getValueInt
int getValueInt(int column)

Get the value of a column as an int

getValueString
string getValueString(int column)

Get the value of a column as a string

getVisiblePath
string getVisiblePath(string separator)

This return the path visible to the user.

setModel
void setModel(GtkTreeModel* gtkTreeModel)
setModel
void setModel(TreeModelIF treeModel)
setUserData
void setUserData(T data)

setUserData and getUserData provide simple boxing around the userData field in the TreeIter struct.

stamp
int stamp()
void stamp(int stamp)

A unique stamp to catch invalid iterators

userData
void* userData()
void userData(void* data)

Model specific data

Static functions

getType
GType getType()

Structs

IterData
struct IterData
Undocumented in source.

Variables

gtkTreeIter
GtkTreeIter* gtkTreeIter;

the main Gtk struct

gtkTreeModel
GtkTreeModel* gtkTreeModel;

this will be set only when the iter is created from the model.

ownedRef
bool ownedRef;
Undocumented in source.

Meta