TreeIter Class Reference

List of all members.

Detailed Description

A representation of a tree or list row.

I would say that someone forgot to create a proper object TreeIter. Anyway GTK+ claims to be object oriented but it only has inherintance.


Public Member Functions

 this ()
 creates a new tree iteractor.

GtkTreeIter * getIter ()
 Gets the GtkTreeIter.

void dump ()
 debuging only

void getValue (gint column, Value value)
 Get Value.

String getValueString (gint column)
 Get the value of a column as a string.

int getValueInt (gint column)
 Get the value of a column as an int.

TreeIter getParent ()
 Gets the parent of this iter.

String getVisiblePath (char[] separator)
 This return the path visible to the user.


Protected Attributes

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


Member Function Documentation

void TreeIter.dump  ) 
 

debuging only

GtkTreeIter* TreeIter.getIter  ) 
 

Gets the GtkTreeIter.

Returns:
GtkTreeIter

TreeIter TreeIter.getParent  ) 
 

Gets the parent of this iter.

Parameters:
child 
Returns:
the parent iter or null if can't get parent or an error occured

void TreeIter.getValue gint  column,
Value  value
 

Get Value.

Parameters:
iter 
column 
value 

int TreeIter.getValueInt gint  column  ) 
 

Get the value of a column as an int.

column the column number

Returns:
a string representing the value of the column
Todo:
throw exception if gtkTreeModel is not set

String TreeIter.getValueString gint  column  ) 
 

Get the value of a column as a string.

column the column number

Returns:
a string representing the value of the column
Todo:
throw exception if gtkTreeModel is not set

String TreeIter.getVisiblePath char[]  separator  ) 
 

This return the path visible to the user.

TreeIter.this  ) 
 

creates a new tree iteractor.

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


Member Data Documentation

GtkTreeModel* TreeIter.gtkTreeModel [protected]
 

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


SourceForge.net Logo