Basics
Guides
API Reference
Basics
Guides
API Reference
[259:14] static extends: object
Alternate constructors for GtkTreePath. Usage:
GtkTreePathCtors.<name>(...). The primary constructor lives
directly on GtkTreePath.
newFirst ()
Creates a new
GtkTreePath. The string representation of this path is “0”.
A new GtkTreePath.newFromIndices (int first_index, list varargs)
Creates a new path with @first_index and @varargs as indices.
first_index is first integer.... is list of integers terminated by -1.A new GtkTreePath.newFromIndicesv (list indices)
Creates a new path with the given @indices array of @length.
indices is array of indices.length is length of @indices array.A new GtkTreePath.newFromString (string path)
Creates a new
GtkTreePathinitialized to @path. @path is expected to be a colon separated list of numbers. For example, the string “10:4:0” would create a path of depth 3 pointing to the 11th child of the root node, the 5th child of that 11th child, and the 1st child of that 5th child. If an invalid path string is passed in, %NULL is returned.
path is The string representation of a path.A new GtkTreePath.[12:7] extends: object
An opaque structure representing a path to a row in a model.
GtkTreePath (Handle = null)
Creates a new
GtkTreePathThis refers to a row.
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.append_index (int index_)
Appends a new index to a path. As a result, the depth of the path is increased.
index_ is the index.None.compare (object b)
Compares two paths. If @a appears before @b in a tree, then -1 is returned. If @b appears before @a, then 1 is returned. If the two nodes are equal, then 0 is returned.
b is a GtkTreePath to compare with.the relative positions of @a and @b.copy ()
Creates a new
GtkTreePathas a copy of @path.
a new GtkTreePath.down ()
Moves @path to point to the first child of the current path.
None.free ()
Frees @path. If @path is %NULL, it simply returns.
None.get_depth ()
Returns the current depth of @path.
The depth of @path.get_indices ()
Returns the current indices of @path. This is an array of integers, each representing a node in a tree. This value should not be freed. The length of the array can be obtained with gtk_tree_path_get_depth().
The current indices.get_indices_with_depth ()
Returns the current indices of @path. This is an array of integers, each representing a node in a tree. It also returns the number of elements in the array. The array should not be freed.
depth is return location for number of elements returned in the integer array.The current indices.is_ancestor (object descendant)
Returns %TRUE if @descendant is a descendant of @path.
descendant is another GtkTreePath.%TRUE if @descendant is contained inside @path.is_descendant (object ancestor)
Returns %TRUE if @path is a descendant of @ancestor.
ancestor is another GtkTreePath.%TRUE if @ancestor contains @path somewhere below it.next ()
Moves the @path to point to the next node at the current depth.
None.prepend_index (int index_)
Prepends a new index to a path. As a result, the depth of the path is increased.
index_ is the index.None.prev ()
Moves the @path to point to the previous node at the current depth, if it exists.
%TRUE if @path has a previous node, and the move was made.to_string ()
Generates a string representation of the path. This string is a “:” separated list of numbers. For example, “4:10:0:3” would be an acceptable return value for this string. If the path has depth 0, %NULL is returned.
A newly-allocated string.up ()
Moves the @path to point to its parent node, if it has a parent.
%TRUE if @path has a parent, and the move was made.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.