Package org.gnome.gtk
Class TreeIter
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.TreeIter
- All Implemented Interfaces:
Proxy
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.-
Field Summary
Fields inherited from class org.javagi.base.ProxyInstance
address -
Constructor Summary
ConstructorsConstructorDescriptionTreeIter()Deprecated.Allocate a new TreeIter.TreeIter(int stamp, MemorySegment userData, MemorySegment userData2, MemorySegment userData3) Deprecated.Allocate a new TreeIter with the fields set to the provided values.TreeIter(int stamp, MemorySegment userData, MemorySegment userData2, MemorySegment userData3, Arena arena) Deprecated.Allocate a new TreeIter with the fields set to the provided values.Deprecated.Allocate a new TreeIter.TreeIter(MemorySegment address) Deprecated.Create a TreeIter proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Deprecated.voidfree()Deprecated.static MemoryLayoutDeprecated.The memory layout of the native struct.static TypegetType()Deprecated.Get the GType of the TreeIter classintDeprecated.Read the value of the fieldstamp.Deprecated.Read the value of the fielduser_data.Deprecated.Read the value of the fielduser_data2.Deprecated.Read the value of the fielduser_data3.voidwriteStamp(int stamp) Deprecated.Write a value in the fieldstamp.voidwriteUserData(MemorySegment userData) Deprecated.Write a value in the fielduser_data.voidwriteUserData2(MemorySegment userData2) Deprecated.Write a value in the fielduser_data2.voidwriteUserData3(MemorySegment userData3) Deprecated.Write a value in the fielduser_data3.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TreeIter
Deprecated.Create a TreeIter proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
TreeIter
Deprecated.Allocate a new TreeIter.- Parameters:
arena- to control the memory allocation scope
-
TreeIter
-
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 fieldstampuserData- value for the fielduserDatauserData2- value for the fielduserData2userData3- value for the fielduserData3arena- 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 withArena.ofAuto().- Parameters:
stamp- value for the fieldstampuserData- value for the fielduserDatauserData2- value for the fielduserData2userData3- value for the fielduserData3
-
-
Method Details
-
getType
-
getMemoryLayout
Deprecated.The memory layout of the native struct.- Returns:
- the memory layout
-
readStamp
public int readStamp()Deprecated.Read the value of the fieldstamp.- Returns:
- The value of the field
stamp
-
writeStamp
public void writeStamp(int stamp) Deprecated.Write a value in the fieldstamp.- Parameters:
stamp- The new value for the fieldstamp
-
readUserData
Deprecated.Read the value of the fielduser_data.- Returns:
- The value of the field
user_data
-
writeUserData
Deprecated.Write a value in the fielduser_data.- Parameters:
userData- The new value for the fielduser_data
-
readUserData2
Deprecated.Read the value of the fielduser_data2.- Returns:
- The value of the field
user_data2
-
writeUserData2
Deprecated.Write a value in the fielduser_data2.- Parameters:
userData2- The new value for the fielduser_data2
-
readUserData3
Deprecated.Read the value of the fielduser_data3.- Returns:
- The value of the field
user_data3
-
writeUserData3
Deprecated.Write a value in the fielduser_data3.- Parameters:
userData3- The new value for the fielduser_data3
-
copy
Deprecated.Creates a dynamically allocated tree iterator as a copy of this TreeIter.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.Frees an iterator that has been allocated by gtk_tree_iter_copy().This function is mainly used for language bindings.
-