Gtk.ATContext¶
class — extends GObject.Object
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.
Constructors¶
create¶
@classmethod
def create(cls, accessible_role: AccessibleRole | int, accessible: Accessible, display: Gdk.Display) -> ATContext | None
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 theGtkATContextaccessible— theGtkAccessibleimplementation using theGtkATContextdisplay— theGdkDisplayused by theGtkATContext
Methods¶
get_accessible¶
Retrieves the GtkAccessible using this context.
get_accessible_role¶
Retrieves the accessible role of this context.
Properties¶
accessible¶
The GtkAccessible that created the GtkATContext instance.
accessible_role¶
The accessible role used by the AT context.
Depending on the given role, different states and properties can be set or retrieved.
display¶
The GdkDisplay for the GtkATContext.
realized¶
Whether the GtkATContext has been realized or not.
Signals¶
state-change¶
Emitted when the attributes of the accessible for the
GtkATContext instance change.