Package org.gnome.gtksourceview
Class RegionIter
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtksourceview.RegionIter
- All Implemented Interfaces:
Proxy
An opaque datatype.
Ignore all its fields and initialize the iter with Region.getStartRegionIter(org.gnome.gtksourceview.RegionIter).
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new RegionIter.RegionIter(Arena arena) Allocate a new RegionIter.RegionIter(MemorySegment address) Create a RegionIter proxy instance for the provided memory address.RegionIter(MemorySegment dummy1, int dummy2, MemorySegment dummy3) Allocate a new RegionIter with the fields set to the provided values.RegionIter(MemorySegment dummy1, int dummy2, MemorySegment dummy3, Arena arena) Allocate a new RegionIter with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.booleangetSubregion(@Nullable TextIter start, @Nullable TextIter end) Gets the subregion at this iterator.booleanisEnd()booleannext()Moves this RegionIter to the next subregion.Read the value of the fielddummy1.intRead the value of the fielddummy2.Read the value of the fielddummy3.voidwriteDummy1(MemorySegment dummy1) Write a value in the fielddummy1.voidwriteDummy2(int dummy2) Write a value in the fielddummy2.voidwriteDummy3(MemorySegment dummy3) Write a value in the fielddummy3.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
RegionIter
Create a RegionIter proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
RegionIter
Allocate a new RegionIter.- Parameters:
arena- to control the memory allocation scope
-
RegionIter
public RegionIter()Allocate a new RegionIter. The memory is allocated withArena.ofAuto(). -
RegionIter
Allocate a new RegionIter with the fields set to the provided values.- Parameters:
dummy1- value for the fielddummy1dummy2- value for the fielddummy2dummy3- value for the fielddummy3arena- to control the memory allocation scope
-
RegionIter
Allocate a new RegionIter with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
dummy1- value for the fielddummy1dummy2- value for the fielddummy2dummy3- value for the fielddummy3
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readDummy1
Read the value of the fielddummy1.- Returns:
- The value of the field
dummy1
-
writeDummy1
Write a value in the fielddummy1.- Parameters:
dummy1- The new value for the fielddummy1
-
readDummy2
public int readDummy2()Read the value of the fielddummy2.- Returns:
- The value of the field
dummy2
-
writeDummy2
public void writeDummy2(int dummy2) Write a value in the fielddummy2.- Parameters:
dummy2- The new value for the fielddummy2
-
readDummy3
Read the value of the fielddummy3.- Returns:
- The value of the field
dummy3
-
writeDummy3
Write a value in the fielddummy3.- Parameters:
dummy3- The new value for the fielddummy3
-
getSubregion
Gets the subregion at this iterator.- Parameters:
start- iterator to initialize with the subregion start, ornull.end- iterator to initialize with the subregion end, ornull.- Returns:
trueifstartandendhave been set successfully (if non-null), orfalseif this RegionIter is the end iterator or if the region is empty.
-
isEnd
public boolean isEnd() -
next
public boolean next()Moves this RegionIter to the next subregion.- Returns:
trueif this RegionIter moved and is dereferenceable, orfalseif this RegionIter has been set to the end iterator.
-