TreePath

class TreePath(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

Skipped during bindings generation

  • parameter depth: depth: Out parameter is not supported

  • method to_string: C function gtk_tree_path_to_string is ignored

  • parameter indices: Array parameter of type gint is not supported

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkTreePathPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun appendIndex(index: Int)

Appends a new index to a path.

Link copied to clipboard

Compares two paths.

Link copied to clipboard
fun copy(): TreePath

Creates a new GtkTreePath as a copy of @path.

Link copied to clipboard
fun down()

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

Link copied to clipboard
fun free()

Frees @path. If @path is null, it simply returns.

Link copied to clipboard
fun getDepth(): Int

Returns the current depth of @path.

Link copied to clipboard
fun isAncestor(descendant: TreePath): Boolean

Returns true if @descendant is a descendant of @path.

Link copied to clipboard
fun isDescendant(ancestor: TreePath): Boolean

Returns true if @path is a descendant of @ancestor.

Link copied to clipboard
fun next()

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

Link copied to clipboard
fun prependIndex(index: Int)

Prepends a new index to a path.

Link copied to clipboard
fun prev(): Boolean

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

Link copied to clipboard
fun up(): Boolean

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