Package org.gnome.gtksourceview
Class RegionIter
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.boolean
getSubregion
(@Nullable TextIter start, @Nullable TextIter end) Gets the subregion at this iterator.boolean
isEnd()
boolean
next()
Moves this RegionIter to the next subregion.Read the value of the fielddummy1
.int
Read the value of the fielddummy2
.Read the value of the fielddummy3
.void
writeDummy1
(MemorySegment dummy1) Write a value in the fielddummy1
.void
writeDummy2
(int dummy2) Write a value in the fielddummy2
.void
writeDummy3
(MemorySegment dummy3) Write a value in the fielddummy3
.Methods inherited from class io.github.jwharm.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 fielddummy1
dummy2
- value for the fielddummy2
dummy3
- value for the fielddummy3
arena
- 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 fielddummy1
dummy2
- value for the fielddummy2
dummy3
- 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:
true
ifstart
andend
have been set successfully (if non-null
), orfalse
if 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:
true
if this RegionIter moved and is dereferenceable, orfalse
if this RegionIter has been set to the end iterator.
-