Class ATContext

All Implemented Interfaces:
PointerInterface

public class ATContext extends Object
`GtkATContext` is an abstract class provided by GTK to communicate to
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`.

https://docs.gtk.org/gtk4/class.ATContext.html

  • Field Details

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • createATContext

      public static ATContext createATContext(int accessible_role, @Nonnull Accessible accessible, @Nonnull 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:
      accessible_role - 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 int getAccessibleRole()
      Retrieves the accessible role of this context.
      Returns:
      a `GtkAccessibleRole`
    • onStateChange

      public SignalHandler onStateChange(ATContext.OnStateChange signal)
      Connect to signal "state-change".
      See ATContext.OnStateChange.onStateChange() for signal description.
      Field SIGNAL_ON_STATE_CHANGE contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()