Class AccessibleTextRange

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.AccessibleTextRange
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AccessibleTextRange extends ProxyInstance
A range inside the text of an accessible object.
Since:
4.14
  • Constructor Details

    • AccessibleTextRange

      public AccessibleTextRange(MemorySegment address)
      Create a AccessibleTextRange proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • AccessibleTextRange

      public AccessibleTextRange(Arena arena)
      Allocate a new AccessibleTextRange.
      Parameters:
      arena - to control the memory allocation scope
    • AccessibleTextRange

      public AccessibleTextRange()
      Allocate a new AccessibleTextRange. The memory is allocated with Arena.ofAuto().
    • AccessibleTextRange

      public AccessibleTextRange(long start, long length, Arena arena)
      Allocate a new AccessibleTextRange with the fields set to the provided values.
      Parameters:
      start - value for the field start
      length - value for the field length
      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 with Arena.ofAuto().
      Parameters:
      start - value for the field start
      length - value for the field length
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readStart

      public long readStart()
      Read the value of the field start.
      Returns:
      The value of the field start
    • writeStart

      public void writeStart(long start)
      Write a value in the field start.
      Parameters:
      start - The new value for the field start
    • readLength

      public long readLength()
      Read the value of the field length.
      Returns:
      The value of the field length
    • writeLength

      public void writeLength(long length)
      Write a value in the field length.
      Parameters:
      length - The new value for the field length