package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Tree_path/index.html
Module Wrappers.Tree_path
type t = [ `tree_path ] Gobject.objAn opaque structure representing a path to a row in a model.
val new_ : unit -> tCreate a new TreePath
val new_first : unit -> tCreate a new TreePath
val new_from_string : string -> tCreate a new TreePath
val up : t -> boolMoves the @path to point to its parent node, if it has a parent.
val to_string : t -> string optionGenerates 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.
val prev : t -> boolMoves the @path to point to the previous node at the current depth, if it exists.
val prepend_index : t -> int -> unitPrepends a new index to a path.
As a result, the depth of the path is increased.
val next : t -> unitMoves the @path to point to the next node at the current depth.
val get_indices_with_depth : t -> int array option * intReturns 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.
val get_depth : t -> intReturns the current depth of @path.
val down : t -> unitMoves @path to point to the first child of the current path.
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.
val append_index : t -> int -> unitAppends a new index to a path.
As a result, the depth of the path is increased.
val get_type : unit -> Gobject.Type.t