Package ch.bailu.gtk.gtk
Klasse TreePath
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gtk.TreePath
- Alle implementierten Schnittstellen:
PointerInterface
An opaque structure representing a path to a row in a model.
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidappendIndex(int index_) Veraltet.intVeraltet.copy()Veraltet.voiddown()Veraltet.voidfree()Veraltet.static ClassHandlerintgetDepth()Veraltet.Veraltet.getIndicesWithDepth(Int depth) Veraltet.static intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizebooleanisAncestor(TreePath descendant) Veraltet.booleanisDescendant(TreePath ancestor) Veraltet.static TreePathVeraltet.static TreePathnewFromIndicesTreePath(int first_index, Object... _ellipsis) Veraltet.static TreePathnewFromIndicesvTreePath(Int indices, long length) Veraltet.static TreePathnewFromStringTreePath(Str path) Veraltet.static TreePathnewFromStringTreePath(String path) Veraltet.voidnext()Veraltet.voidprependIndex(int index_) Veraltet.booleanprev()Veraltet.toStr()Veraltet.booleanup()Veraltet.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
TreePath
-
TreePath
Veraltet.Creates a new `GtkTreePath`
This refers to a row.
-
-
Methodendetails
-
getClassHandler
-
newFirstTreePath
Veraltet.Creates a new `GtkTreePath`.
The string representation of this path is “0”.- Gibt zurück:
- A new `GtkTreePath`
-
newFromIndicesTreePath
Veraltet.Creates a new path with @first_index and @varargs as indices.- Parameter:
first_index- first integer_ellipsis- list of integers terminated by -1- Gibt zurück:
- A newly created `GtkTreePath`
-
newFromIndicesvTreePath
Veraltet.Creates a new path with the given @indices array of @length.- Parameter:
indices- array of indiceslength- length of @indices array- Gibt zurück:
- A newly created `GtkTreePath`
-
newFromStringTreePath
Veraltet.Creates a new `GtkTreePath` initialized to @path.
@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.- Parameter:
path- The string representation of a path- Gibt zurück:
- A newly-created `GtkTreePath`
-
newFromStringTreePath
Veraltet.Creates a new `GtkTreePath` initialized to @path.
@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.- Parameter:
path- The string representation of a path- Gibt zurück:
- A newly-created `GtkTreePath`
-
appendIndex
Veraltet.Appends a new index to a path.
As a result, the depth of the path is increased.- Parameter:
index_- the index
-
compare
Veraltet.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.- Parameter:
b- a `GtkTreePath` to compare with- Gibt zurück:
- the relative positions of @a and @b
-
copy
Veraltet.Creates a new `GtkTreePath` as a copy of @path.- Gibt zurück:
- a new `GtkTreePath`
-
down
Veraltet.Moves @path to point to the first child of the current path. -
free
Veraltet.Frees @path. If @path is %NULL, it simply returns. -
getDepth
Veraltet.Returns the current depth of @path.- Gibt zurück:
- The depth of @path
-
getIndices
Veraltet.Returns the current indices of @path.
This is an array of integers, each representing a node in a tree.
This value should not be freed.
The length of the array can be obtained with gtk_tree_path_get_depth().- Gibt zurück:
- The current indices
-
getIndicesWithDepth
Veraltet.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.- Parameter:
depth- return location for number of elements returned in the integer array- Gibt zurück:
- The current indices
-
isAncestor
Veraltet.Returns %TRUE if @descendant is a descendant of @path.- Parameter:
descendant- another `GtkTreePath`- Gibt zurück:
- %TRUE if @descendant is contained inside @path
-
isDescendant
Veraltet.Returns %TRUE if @path is a descendant of @ancestor.- Parameter:
ancestor- another `GtkTreePath`- Gibt zurück:
- %TRUE if @ancestor contains @path somewhere below it
-
next
Veraltet.Moves the @path to point to the next node at the current depth. -
prependIndex
Veraltet.Prepends a new index to a path.
As a result, the depth of the path is increased.- Parameter:
index_- the index
-
prev
Veraltet.Moves the @path to point to the previous node at the
current depth, if it exists.- Gibt zurück:
- %TRUE if @path has a previous node, and the move was made
-
toStr
Veraltet.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.- Gibt zurück:
- A newly-allocated string
-
up
Veraltet.Moves the @path to point to its parent node, if it has a parent.- Gibt zurück:
- %TRUE if @path has a parent, and the move was made
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-