TreeStore Class Reference

List of all members.

Detailed Description

A tree model that represents a tree structure.


Public Member Functions

GType getType ()
 Gets this class type.
 this (GType[] types)
 Creates a new TreeStore with the defined types.
GtkTreeModel * model ()
 Gets the GtkModel - internal use only.
TreeIter createIter ()
 Creates a new top level Tree iterator.
GtkTreeStore * gtk_tree_store_new (gint n_columns,...)
void gtk_tree_store_set_column_types (GtkTreeStore *tree_store, gint n_columns, GType *types)
void setValue (TreeIter iter, int column, char[] value)
 Sets one value into one cells.
void set (TreeIter iter, int[] columns, void *[] values)
 Sets an iteractor values.
void set (TreeIter iter, int[] columns, String[] values)
 Sets an iteractor values.
void set (TreeIter iter, TreeNode treeNode)
 Sets an iteractor values from a tree node.
void gtk_tree_store_set_valist (GtkTreeStore *tree_store, GtkTreeIter *iter, vaList var_args)
bit remove (TreeIter iter)
 Removes a row from the list.
void insert (TreeIter iter, TreeIter parent, gint position)
 insert
void insertBefore (TreeIter iter, TreeIter parent, TreeIter sibling)
 insertBefore
void insertAfter (TreeIter iter, TreeIter parent, TreeIter sibling)
 insertAfter
void prepend (TreeIter iter, TreeIter parent)
 prepend
TreeIter append (TreeIter parentIter)
 Creates a new tree iteractor (effectivly a new row) nested on the passed parent iteractor.
bit isAncestor (TreeIter iter, TreeIter descendant)
 isAncestor
gint iterDepth (TreeIter iter)
 iterDepth
void clear ()
 removes all entries from the tree
bit iterIsValid (TreeIter iter)
 iterIsValid
void reorder (TreeIter parent, gint[] newOrder)
 reorder
void swap (TreeIter a, TreeIter b)
 swap
void moveAfter (TreeIter iter, TreeIter position)
 moveAfter
void modeBefore (TreeIter iter, TreeIter position)
 modeBefore


Member Function Documentation

TreeIter TreeStore.append TreeIter  parentIter  ) 
 

Creates a new tree iteractor (effectivly a new row) nested on the passed parent iteractor.

Parameters:
parentIter 
Returns:
a new tree iteractor

void TreeStore.clear  ) 
 

removes all entries from the tree

TreeIter TreeStore.createIter  ) 
 

Creates a new top level Tree iterator.

effectevly this is the way to start to add entries to the model

Returns:
a new top level tree iteractor

GType TreeStore.getType  ) 
 

Gets this class type.

Returns:
this class type

GtkTreeStore* TreeStore.gtk_tree_store_new gint  n_columns,
  ...
 

Todo:

void TreeStore.gtk_tree_store_set_column_types GtkTreeStore *  tree_store,
gint  n_columns,
GType *  types
 

Todo:

void TreeStore.gtk_tree_store_set_valist GtkTreeStore *  tree_store,
GtkTreeIter *  iter,
vaList  var_args
 

Todo:

void TreeStore.insert TreeIter  iter,
TreeIter  parent,
gint  position
 

insert

Parameters:
iter 
parent 
position 
 

void TreeStore.insertAfter TreeIter  iter,
TreeIter  parent,
TreeIter  sibling
 

insertAfter

Parameters:
iter 
parent 
sibling 

void TreeStore.insertBefore TreeIter  iter,
TreeIter  parent,
TreeIter  sibling
 

insertBefore

Parameters:
iter 
parent 
sibling 

bit TreeStore.isAncestor TreeIter  iter,
TreeIter  descendant
 

isAncestor

Parameters:
iter 
descendant 

gint TreeStore.iterDepth TreeIter  iter  ) 
 

iterDepth

Parameters:
iter 

bit TreeStore.iterIsValid TreeIter  iter  ) 
 

iterIsValid

Parameters:
iter 

void TreeStore.modeBefore TreeIter  iter,
TreeIter  position
 

modeBefore

Parameters:
iter 
position 

GtkTreeModel* TreeStore.model  ) 
 

Gets the GtkModel - internal use only.

void TreeStore.moveAfter TreeIter  iter,
TreeIter  position
 

moveAfter

Parameters:
iter 
position 

void TreeStore.prepend TreeIter  iter,
TreeIter  parent
 

prepend

Parameters:
iter 
parent 

bit TreeStore.remove TreeIter  iter  ) 
 

Removes a row from the list.

Parameters:
iter the iteract that contains the row
Returns:
true if succesefull

void TreeStore.reorder TreeIter  parent,
gint[]  newOrder
 

reorder

Parameters:
parent 
newOrder 

void TreeStore.set TreeIter  iter,
TreeNode  treeNode
 

Sets an iteractor values from a tree node.

This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()

Parameters:
iter the iteractor to set
treeNode the tree node
See also:
createIter()

append()

void TreeStore.set TreeIter  iter,
int[]  columns,
String[]  values
 

Sets an iteractor values.

This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()

Parameters:
iter the iteractor to set
columns the numbers of the columns to set
values the values to set into the cells
See also:
createIter()

append()

void TreeStore.set TreeIter  iter,
int[]  columns,
void *[]  values
 

Sets an iteractor values.

This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()

Parameters:
iter the iteractor to set
columns the numbers of the columns to set
values the values to set into the cells
See also:
createIter()

append()

void TreeStore.setValue TreeIter  iter,
int  column,
char[]  value
 

Sets one value into one cells.

Parameters:
iter the tree iteractor, effectivly the row
column to column number to set
value the value

void TreeStore.swap TreeIter  a,
TreeIter  b
 

swap

Parameters:
a 
b 

TreeStore.this GType[]  types  ) 
 

Creates a new TreeStore with the defined types.

Parameters:
types the types of the column to create


SourceForge.net Logo DSource.org Logo digitalmars.com Logo