TreePath

An opaque structure representing a path to a row in a model.

Constructors

this
this()

Creates a new gtk.tree_path.TreePath This refers to a row.

Members

Functions

appendIndex
void appendIndex(int index)

Appends a new index to a path.

compare
int compare(gtk.tree_path.TreePath b)

Compares two paths.

copy
gtk.tree_path.TreePath copy()

Creates a new gtk.tree_path.TreePath as a copy of path.

down
void down()

Moves path to point to the first child of the current path.

getDepth
int getDepth()

Returns the current depth of path.

getIndices
int[] getIndices()

Returns the current indices of path.

isAncestor
bool isAncestor(gtk.tree_path.TreePath descendant)

Returns true if descendant is a descendant of path.

isDescendant
bool isDescendant(gtk.tree_path.TreePath ancestor)

Returns true if path is a descendant of ancestor.

next
void next()

Moves the path to point to the next node at the current depth.

prependIndex
void prependIndex(int index)

Prepends a new index to a path.

prev
bool prev()

Moves the path to point to the previous node at the current depth, if it exists.

toString_
string toString_()

Generates a string representation of the path.

up
bool up()

Moves the path to point to its parent node, if it has a parent.

Static functions

newFirst
gtk.tree_path.TreePath newFirst()

Creates a new gtk.tree_path.TreePath.

newFromIndices
gtk.tree_path.TreePath newFromIndices(int[] indices)

Creates a new path with the given indices array of length.

newFromString
gtk.tree_path.TreePath newFromString(string path)

Creates a new gtk.tree_path.TreePath initialized to path.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.