Class ATContext

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
ATContext.ATContext$Impl

@Generated("org.javagi.JavaGI") public abstract class ATContext extends GObject

Communicates with platform-specific assistive technologies API.

Each platform supported by GTK implements a GtkATContext subclass, and is responsible for updating the accessible state in response to state changes in GtkAccessible.

  • Constructor Details

    • ATContext

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

      public ATContext()
      Create a new ATContext.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ATContext class.
      Returns:
      the GType
    • getMemoryLayout

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

      protected ATContext asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • create

      public static @Nullable ATContext create(AccessibleRole accessibleRole, Accessible accessible, Display display)

      Creates a new GtkATContext instance for the given accessible role, accessible instance, and display connection.

      The GtkATContext implementation being instantiated will depend on the platform.

      Parameters:
      accessibleRole - the accessible role used by the GtkATContext
      accessible - the GtkAccessible implementation using the GtkATContext
      display - the GdkDisplay used by the GtkATContext
      Returns:
      the GtkATContext
    • getAccessible

      public Accessible getAccessible()
      Retrieves the GtkAccessible using this context.
      Returns:
      a GtkAccessible
    • getAccessibleRole

      public AccessibleRole getAccessibleRole()
      Retrieves the accessible role of this context.
      Returns:
      a GtkAccessibleRole
    • onStateChange

      Emitted when the attributes of the accessible for the GtkATContext instance change.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitStateChange

      public void emitStateChange()
      Emits the "state-change" signal. See onStateChange(ATContext.StateChangeCallback).