TreePath Class Reference

List of all members.

Detailed Description

A tree path.

Todo:
seems we have to release the struct memory


Public Member Functions

 this (GtkTreePath *gtkTreePath)
 Creates a new TreePath from a GtkTreePath.
GtkTreePath * gtkP ()
 Gets the Gtk tree path structure.
 this ()
 Creates a new TreePath.
 this (char[] path)
 Creates a new tree path from a string.
char[] toString ()
 Gets a representation of this tree path.
void appendIndex (gint index)
 Appends an index to this tree path ???
void prependIndex (gint index)
 Preppends an index to this tree path ???
gint getDepth ()
 Gets the depth of this tree path.
gint * getIndices ()
 Gets the indeces of this tree path ???
void free ()
 Frees this tree path.
 this (TreePath path)
 Creates a new tree path from an existing tree path.
gint compare (TreePath path)
 Compares this tree path with another tree path.
void next ()
 Moves this tree path one level in depth.
bit prev ()
 Move this tree path to the parent branch.
bit up ()
 Move this tree path up.
void down ()
 Moce this tree path down.
bit isAncestor (TreePath descendant)
 Check if this tree path is ancestor.
bit isDescendant (TreePath ancestor)
 Check is this tree path is descendent.

Static Public Member Functions

GType getType ()
 Gets this class type.
TreePath newRoot ()
 Creates a new first levet tree path.
TreePath newFirst ()
 Creates a new first levet tree path.


Member Function Documentation

void TreePath.appendIndex gint  index  ) 
 

Appends an index to this tree path ???

gint TreePath.compare TreePath  path  ) 
 

Compares this tree path with another tree path.

Parameters:
path the path to compare to
Returns:
the conparison result ???

void TreePath.down  ) 
 

Moce this tree path down.

void TreePath.free  ) 
 

Frees this tree path.

gint TreePath.getDepth  ) 
 

Gets the depth of this tree path.

Returns:
the depth of this tree path

gint* TreePath.getIndices  ) 
 

Gets the indeces of this tree path ???

Returns:
a pointer to the indeces

GType TreePath.getType  )  [static]
 

Gets this class type.

Returns:
this class type

GtkTreePath* TreePath.gtkP  ) 
 

Gets the Gtk tree path structure.

Returns:

bit TreePath.isAncestor TreePath  descendant  ) 
 

Check if this tree path is ancestor.

Parameters:
descendant the path to test

bit TreePath.isDescendant TreePath  ancestor  ) 
 

Check is this tree path is descendent.

Parameters:
ancestor the path to test

TreePath TreePath.newFirst  )  [static]
 

Creates a new first levet tree path.

Returns:
a new first level tree path

TreePath TreePath.newRoot  )  [static]
 

Creates a new first levet tree path.

Returns:
a new first level tree path

void TreePath.next  ) 
 

Moves this tree path one level in depth.

void TreePath.prependIndex gint  index  ) 
 

Preppends an index to this tree path ???

bit TreePath.prev  ) 
 

Move this tree path to the parent branch.

Returns:
true if ???

TreePath.this TreePath  path  ) 
 

Creates a new tree path from an existing tree path.

Parameters:
path the existing tree path to copy

TreePath.this char[]  path  ) 
 

Creates a new tree path from a string.

Parameters:
path the string

TreePath.this  ) 
 

Creates a new TreePath.

TreePath.this GtkTreePath *  gtkTreePath  ) 
 

Creates a new TreePath from a GtkTreePath.

char [] TreePath.toString  ) 
 

Gets a representation of this tree path.

Returns:
a string that represents this tree path

bit TreePath.up  ) 
 

Move this tree path up.

Returns:
true if ???


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