TreeIter

The gtk.TreeIter is the primary structure for accessing a gtk.TreeModel 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()
getUserData2
T getUserData2()
getUserData3
T getUserData3()

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)
setUserData2
void setUserData2(T data)
setUserData3
void setUserData3(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)
userData2
void* userData2()
void userData2(void* data)
userData3
void* userData3()
void userData3(void* data)

Model specific data

Static functions

getType
GType getType()

Variables

gtkTreeIter
GtkTreeIter* gtkTreeIter;

the main Gtk struct

gtkTreeModel
GtkTreeModel* gtkTreeModel;

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