Class TreeIter

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class TreeIter extends ProxyInstance
Deprecated.
The GtkTreeIter is the primary structure for accessing a GtkTreeModel. Models are expected to put a unique integer in the stamp member, and put model-specific data in the three userData members.
  • Constructor Details

    • TreeIter

      public TreeIter(MemorySegment address)
      Deprecated.
      Create a TreeIter proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • TreeIter

      public TreeIter(Arena arena)
      Deprecated.
      Allocate a new TreeIter.
      Parameters:
      arena - to control the memory allocation scope
    • TreeIter

      public TreeIter()
      Deprecated.
      Allocate a new TreeIter. The memory is allocated with Arena.ofAuto().
    • TreeIter

      public TreeIter(int stamp, MemorySegment userData, MemorySegment userData2, MemorySegment userData3, Arena arena)
      Deprecated.
      Allocate a new TreeIter with the fields set to the provided values.
      Parameters:
      stamp - value for the field stamp
      userData - value for the field userData
      userData2 - value for the field userData2
      userData3 - value for the field userData3
      arena - to control the memory allocation scope
    • TreeIter

      public TreeIter(int stamp, MemorySegment userData, MemorySegment userData2, MemorySegment userData3)
      Deprecated.
      Allocate a new TreeIter with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      stamp - value for the field stamp
      userData - value for the field userData
      userData2 - value for the field userData2
      userData3 - value for the field userData3
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the TreeIter class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readStamp

      public int readStamp()
      Deprecated.
      Read the value of the field stamp.
      Returns:
      The value of the field stamp
    • writeStamp

      public void writeStamp(int stamp)
      Deprecated.
      Write a value in the field stamp.
      Parameters:
      stamp - The new value for the field stamp
    • readUserData

      public MemorySegment readUserData()
      Deprecated.
      Read the value of the field user_data.
      Returns:
      The value of the field user_data
    • writeUserData

      public void writeUserData(MemorySegment userData)
      Deprecated.
      Write a value in the field user_data.
      Parameters:
      userData - The new value for the field user_data
    • readUserData2

      public MemorySegment readUserData2()
      Deprecated.
      Read the value of the field user_data2.
      Returns:
      The value of the field user_data2
    • writeUserData2

      public void writeUserData2(MemorySegment userData2)
      Deprecated.
      Write a value in the field user_data2.
      Parameters:
      userData2 - The new value for the field user_data2
    • readUserData3

      public MemorySegment readUserData3()
      Deprecated.
      Read the value of the field user_data3.
      Returns:
      The value of the field user_data3
    • writeUserData3

      public void writeUserData3(MemorySegment userData3)
      Deprecated.
      Write a value in the field user_data3.
      Parameters:
      userData3 - The new value for the field user_data3
    • copy

      @Deprecated public TreeIter copy()
      Deprecated.

      Creates a dynamically allocated tree iterator as a copy of iter.

      This function is not intended for use in applications, because you can just copy the structs by value (GtkTreeIter new_iter = iter;). You must free this iter with gtk_tree_iter_free().

      Returns:
      a newly-allocated copy of this TreeIter
    • free

      @Deprecated public void free()
      Deprecated.

      Frees an iterator that has been allocated by gtk_tree_iter_copy().

      This function is mainly used for language bindings.