Class TreePath
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorsConstructorDescriptionTreePath()Deprecated.TreePath(MemorySegment address) Deprecated.Create a TreePath proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendIndex(int index) Deprecated.intDeprecated.copy()Deprecated.voiddown()Deprecated.static TreePathfirst()Deprecated.voidfree()Deprecated.static TreePathfromIndices(@org.jspecify.annotations.Nullable int @Nullable [] indices) Deprecated.static TreePathfromString(String path) Deprecated.intgetDepth()Deprecated.@org.jspecify.annotations.Nullable int @Nullable []Deprecated.static @Nullable TypegetType()Deprecated.Get the GType of the TreePath classbooleanisAncestor(TreePath descendant) Deprecated.booleanisDescendant(TreePath ancestor) Deprecated.voidnext()Deprecated.voidprependIndex(int index) Deprecated.booleanprev()Deprecated.@Nullable StringtoString()Deprecated.booleanup()Deprecated.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TreePath
Deprecated.Create a TreePath proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
TreePath
-
-
Method Details
-
getType
Deprecated.Get the GType of the TreePath class- Returns:
- the GType
-
first
Deprecated.Creates a newGtkTreePath.The string representation of this path is “0”.
- Returns:
- A new
GtkTreePath
-
fromIndices
@Deprecated public static TreePath fromIndices(@org.jspecify.annotations.Nullable int @Nullable [] indices) Deprecated.Creates a new path with the givenindicesarray oflength.- Parameters:
indices- array of indices- Returns:
- A newly created
GtkTreePath
-
fromString
Deprecated.Creates a newGtkTreePathinitialized topath.pathis 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,nullis returned.- Parameters:
path- The string representation of a path- Returns:
- A newly-created
GtkTreePath
-
appendIndex
Deprecated.Appends a new index to a path.As a result, the depth of the path is increased.
- Parameters:
index- the index
-
compare
Deprecated.Compares two paths.If this TreePath appears before
bin a tree, then -1 is returned. Ifbappears beforea,then 1 is returned. If the two nodes are equal, then 0 is returned.- Parameters:
b- aGtkTreePathto compare with- Returns:
- the relative positions of this TreePath and
b
-
copy
Deprecated.Creates a newGtkTreePathas a copy ofpath.- Returns:
- a new
GtkTreePath
-
down
Deprecated.Moves this TreePath to point to the first child of the current path. -
free
-
getDepth
Deprecated.Returns the current depth ofpath.- Returns:
- The depth of this TreePath
-
getIndices
Deprecated.Returns the current indices ofpath.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:
- The current indices
-
isAncestor
Deprecated.Returnstrueifdescendantis a descendant ofpath.- Parameters:
descendant- anotherGtkTreePath- Returns:
trueifdescendantis contained inside this TreePath
-
isDescendant
Deprecated.Returnstrueif this TreePath is a descendant ofancestor.- Parameters:
ancestor- anotherGtkTreePath- Returns:
trueifancestorcontains this TreePath somewhere below it
-
next
Deprecated.Moves the this TreePath to point to the next node at the current depth. -
prependIndex
Deprecated.Prepends a new index to a path.As a result, the depth of the path is increased.
- Parameters:
index- the index
-
prev
Deprecated.Moves the this TreePath to point to the previous node at the current depth, if it exists.- Returns:
trueif this TreePath has a previous node, and the move was made
-
toString
Deprecated.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,
nullis returned. -
up
Deprecated.Moves the this TreePath to point to its parent node, if it has a parent.- Returns:
trueif this TreePath has a parent, and the move was made
-