TreePath

Constructors

this
this(GtkTreePath* gtkTreePath, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(bool firstRow)

Creates a new GtkTreePath. This structure refers to a row.

this
this(int[] indices)

Creates a new path with "indices" as indices.

this
this(string path)

Creates a new #GtkTreePath-struct initialized to @path.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

appendIndex
void appendIndex(int index)

Appends a new index to a path.

compare
int compare(TreePath b)

Compares two paths.

copy
TreePath copy()

Creates a new #GtkTreePath-struct as a copy of @path.

down
void down()

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

free
void free()

Frees @path. If @path is %NULL, it simply returns.

getDepth
int getDepth()

Returns the current depth of @path.

getIndices
int[] getIndices()

Returns the current indices of @path.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTreePathStruct
GtkTreePath* getTreePathStruct(bool transferOwnership)

Get the main Gtk struct

isAncestor
bool isAncestor(TreePath descendant)

Returns %TRUE if @descendant is a descendant of @path.

isDescendant
bool isDescendant(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

getType
GType getType()

Variables

gtkTreePath
GtkTreePath* gtkTreePath;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta