Klasse TreePath

Alle implementierten Schnittstellen:
PointerInterface

public class TreePath extends Record
An opaque structure representing a path to a row in a model.

https://docs.gtk.org/gtk4/struct.TreePath.html

  • Konstruktordetails

    • TreePath

      public TreePath(PointerContainer pointer)
    • TreePath

      @Deprecated public TreePath()
      Veraltet.
      Creates a new `GtkTreePath`
      This refers to a row.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newFirstTreePath

      @Deprecated public static TreePath newFirstTreePath()
      Veraltet.
      Creates a new `GtkTreePath`.

      The string representation of this path is “0”.
      Gibt zurück:
      A new `GtkTreePath`
    • newFromIndicesTreePath

      @Deprecated public static TreePath newFromIndicesTreePath(int first_index, Object... _ellipsis)
      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

      @Deprecated public static TreePath newFromIndicesvTreePath(@Nonnull Int indices, long length)
      Veraltet.
      Creates a new path with the given @indices array of @length.
      Parameter:
      indices - array of indices
      length - length of @indices array
      Gibt zurück:
      A newly created `GtkTreePath`
    • newFromStringTreePath

      @Deprecated public static TreePath newFromStringTreePath(@Nonnull Str path)
      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

      @Deprecated public static TreePath newFromStringTreePath(String path)
      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

      @Deprecated public void appendIndex(int index_)
      Veraltet.
      Appends a new index to a path.

      As a result, the depth of the path is increased.
      Parameter:
      index_ - the index
    • compare

      @Deprecated public int compare(@Nonnull TreePath b)
      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

      @Deprecated public TreePath copy()
      Veraltet.
      Creates a new `GtkTreePath` as a copy of @path.
      Gibt zurück:
      a new `GtkTreePath`
    • down

      @Deprecated public void down()
      Veraltet.
      Moves @path to point to the first child of the current path.
    • free

      @Deprecated public void free()
      Veraltet.
      Frees @path. If @path is %NULL, it simply returns.
    • getDepth

      @Deprecated public int getDepth()
      Veraltet.
      Returns the current depth of @path.
      Gibt zurück:
      The depth of @path
    • getIndices

      @Deprecated public Int 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

      @Deprecated public Int getIndicesWithDepth(@Nullable Int depth)
      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

      @Deprecated public boolean isAncestor(@Nonnull TreePath descendant)
      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

      @Deprecated public boolean isDescendant(@Nonnull TreePath ancestor)
      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

      @Deprecated public void next()
      Veraltet.
      Moves the @path to point to the next node at the current depth.
    • prependIndex

      @Deprecated public void prependIndex(int index_)
      Veraltet.
      Prepends a new index to a path.

      As a result, the depth of the path is increased.
      Parameter:
      index_ - the index
    • prev

      @Deprecated public boolean 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

      @Deprecated public Str 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

      @Deprecated public boolean 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

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()