Package org.gnome.gtk
Class AccessibleTextRange
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.AccessibleTextRange
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.longRead the value of the fieldlength.longRead the value of the fieldstart.voidwriteLength(long length) Write a value in the fieldlength.voidwriteStart(long start) Write a value in the fieldstart.Methods inherited from class org.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 fieldstartlength- value for the fieldlengtharena- 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 fieldstartlength- 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
-