Class TreePath
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionTreePath()
Deprecated.TreePath
(MemorySegment address) Deprecated.Create a TreePath proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendIndex
(int index) Deprecated.int
Deprecated.copy()
Deprecated.void
down()
Deprecated.static TreePath
first()
Deprecated.void
free()
Deprecated.static TreePath
fromIndices
(int[] indices) Deprecated.static TreePath
fromString
(String path) Deprecated.int
getDepth()
Deprecated.int[]
Deprecated.static Type
getType()
Deprecated.Get the GType of the TreePath classboolean
isAncestor
(TreePath descendant) Deprecated.boolean
isDescendant
(TreePath ancestor) Deprecated.void
next()
Deprecated.void
prependIndex
(int index) Deprecated.boolean
prev()
Deprecated.toString()
Deprecated.boolean
up()
Deprecated.Methods inherited from class io.github.jwharm.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
-
first
Deprecated.Creates a newGtkTreePath
.The string representation of this path is “0”.
- Returns:
- A new
GtkTreePath
-
fromIndices
Deprecated.Creates a new path with the givenindices
array oflength
.- Parameters:
indices
- array of indices- Returns:
- A newly created
GtkTreePath
-
fromString
Deprecated.Creates a newGtkTreePath
initialized topath
.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.- 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
b
in a tree, then -1 is returned. Ifb
appears before this TreePath, then 1 is returned. If the two nodes are equal, then 0 is returned.- Parameters:
b
- aGtkTreePath
to compare with- Returns:
- the relative positions of this TreePath and
b
-
copy
Deprecated.Creates a newGtkTreePath
as a copy of this TreePath.- Returns:
- a new
GtkTreePath
-
down
Deprecated.Moves this TreePath to point to the first child of the current path. -
free
Deprecated.Frees this TreePath. If this TreePath isnull
, it simply returns. -
getDepth
Deprecated.Returns the current depth of this TreePath.- Returns:
- The depth of this TreePath
-
getIndices
Deprecated.Returns the current indices of this TreePath.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.Returnstrue
ifdescendant
is a descendant of this TreePath.- Parameters:
descendant
- anotherGtkTreePath
- Returns:
true
ifdescendant
is contained inside this TreePath
-
isDescendant
Deprecated.Returnstrue
if this TreePath is a descendant ofancestor
.- Parameters:
ancestor
- anotherGtkTreePath
- Returns:
true
ifancestor
contains 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:
true
if 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,
null
is returned. -
up
Deprecated.Moves the this TreePath to point to its parent node, if it has a parent.- Returns:
true
if this TreePath has a parent, and the move was made
-