Gtk.ATContext

g GObject.Object GObject.Object Gtk.ATContext Gtk.ATContext GObject.Object->Gtk.ATContext

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

create (accessible_role, accessible, display)

get_accessible ()

get_accessible_role ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

accessible

Gtk.Accessible

r/w/co

accessible-role

Gtk.AccessibleRole

r/w/c

display

Gdk.Display

r/w/en

Signals

Inherited:

GObject.Object (1)

Name

Short Description

state-change

Emitted when the attributes of the accessible for the GtkATContext instance change.

Fields

Inherited:

GObject.Object (1)

Class Details

class Gtk.ATContext(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Gtk.ATContextClass

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.

classmethod create(accessible_role, accessible, display)[source]
Parameters:
  • accessible_role (Gtk.AccessibleRole) – the accessible role used by the GtkATContext

  • accessible (Gtk.Accessible) – the GtkAccessible implementation using the GtkATContext

  • display (Gdk.Display) – the GdkDisplay used by the GtkATContext

Returns:

the GtkATContext

Return type:

Gtk.ATContext or 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.

get_accessible()[source]
Returns:

a GtkAccessible

Return type:

Gtk.Accessible

Retrieves the GtkAccessible using this context.

get_accessible_role()[source]
Returns:

a GtkAccessibleRole

Return type:

Gtk.AccessibleRole

Retrieves the accessible role of this context.

Signal Details

Gtk.ATContext.signals.state_change(a_t_context)
Signal Name:

state-change

Flags:

RUN_FIRST

Parameters:

a_t_context (Gtk.ATContext) – The object which received the signal

Emitted when the attributes of the accessible for the GtkATContext instance change.

Property Details

Gtk.ATContext.props.accessible
Name:

accessible

Type:

Gtk.Accessible

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The GtkAccessible that created the GtkATContext instance.

Gtk.ATContext.props.accessible_role
Name:

accessible-role

Type:

Gtk.AccessibleRole

Default Value:

Gtk.AccessibleRole.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT

The accessible role used by the AT context.

Depending on the given role, different states and properties can be set or retrieved.

Gtk.ATContext.props.display
Name:

display

Type:

Gdk.Display

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The GdkDisplay for the GtkATContext.