Class (GI Struct)

Gtk-3.0GtkTreePath

Index

Constructors

Properties

$gtype: GType<Gtk.TreePath>

Methods

  • Appends a new index to a path.

    As a result, the depth of the path is increased.

    Parameters

    • index_: number

      the index

    Returns void

  • 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.

    Parameters

    Returns number

    the relative positions of a and b

  • 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.

    Returns number[]

    The current indices, or null

  • Prepends a new index to a path.

    As a result, the depth of the path is increased.

    Parameters

    • index_: number

      the index

    Returns void

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

    Returns boolean

    true if path has a previous node, and the move was made

  • 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.

    Returns string

    A newly-allocated string. Must be freed with g_free().

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

    Returns boolean

    true if path has a parent, and the move was made