Package org.gnome.gtk
Class AccessibleTextRange
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.AccessibleTextRange
-
Constructor Summary
ConstructorDescriptionAllocate a new AccessibleTextRange.AccessibleTextRange
(long start, long length) Allocate a new AccessibleTextRange with the fields set to the provided values.AccessibleTextRange
(long start, long length, Arena arena) Allocate a new AccessibleTextRange with the fields set to the provided values.AccessibleTextRange
(Arena arena) Allocate a new AccessibleTextRange.AccessibleTextRange
(MemorySegment address) Create a AccessibleTextRange proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.long
Read the value of the fieldlength
.long
Read the value of the fieldstart
.void
writeLength
(long length) Write a value in the fieldlength
.void
writeStart
(long start) Write a value in the fieldstart
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AccessibleTextRange
Create a AccessibleTextRange proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AccessibleTextRange
Allocate a new AccessibleTextRange.- Parameters:
arena
- to control the memory allocation scope
-
AccessibleTextRange
public AccessibleTextRange()Allocate a new AccessibleTextRange. The memory is allocated withArena.ofAuto()
. -
AccessibleTextRange
Allocate a new AccessibleTextRange with the fields set to the provided values.- Parameters:
start
- value for the fieldstart
length
- value for the fieldlength
arena
- to control the memory allocation scope
-
AccessibleTextRange
public AccessibleTextRange(long start, long length) Allocate a new AccessibleTextRange with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
start
- value for the fieldstart
length
- value for the fieldlength
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readStart
public long readStart()Read the value of the fieldstart
.- Returns:
- The value of the field
start
-
writeStart
public void writeStart(long start) Write a value in the fieldstart
.- Parameters:
start
- The new value for the fieldstart
-
readLength
public long readLength()Read the value of the fieldlength
.- Returns:
- The value of the field
length
-
writeLength
public void writeLength(long length) Write a value in the fieldlength
.- Parameters:
length
- The new value for the fieldlength
-