gi-gtk-4.0.4: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.ATContext

Description

GtkATContext is an abstract class provided by GTK to communicate to platform-specific assistive technologies API.

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

Synopsis

Exported types

newtype ATContext Source #

Memory-managed wrapper type.

Constructors

ATContext (ManagedPtr ATContext) 

Instances

Instances details
Eq ATContext Source # 
Instance details

Defined in GI.Gtk.Objects.ATContext

GObject ATContext Source # 
Instance details

Defined in GI.Gtk.Objects.ATContext

ManagedPtrNewtype ATContext Source # 
Instance details

Defined in GI.Gtk.Objects.ATContext

Methods

toManagedPtr :: ATContext -> ManagedPtr ATContext

TypedObject ATContext Source # 
Instance details

Defined in GI.Gtk.Objects.ATContext

Methods

glibType :: IO GType

HasParentTypes ATContext Source # 
Instance details

Defined in GI.Gtk.Objects.ATContext

IsGValue (Maybe ATContext) Source #

Convert ATContext to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.ATContext

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe ATContext -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe ATContext)

type ParentTypes ATContext Source # 
Instance details

Defined in GI.Gtk.Objects.ATContext

type ParentTypes ATContext = '[Object]

class (GObject o, IsDescendantOf ATContext o) => IsATContext o Source #

Type class for types which can be safely cast to ATContext, for instance with toATContext.

Instances

Instances details
(GObject o, IsDescendantOf ATContext o) => IsATContext o Source # 
Instance details

Defined in GI.Gtk.Objects.ATContext

toATContext :: (MonadIO m, IsATContext o) => o -> m ATContext Source #

Cast to ATContext, for types for which this is known to be safe. For general casts, use castTo.

Methods

create

aTContextCreate Source #

Arguments

:: (HasCallStack, MonadIO m, IsAccessible a, IsDisplay b) 
=> AccessibleRole

accessibleRole: the accessible role used by the ATContext

-> a

accessible: the Accessible implementation using the ATContext

-> b

display: the Display used by the ATContext

-> m (Maybe ATContext)

Returns: the ATContext

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

The ATContext implementation being instantiated will depend on the platform.

getAccessible

aTContextGetAccessible Source #

Arguments

:: (HasCallStack, MonadIO m, IsATContext a) 
=> a

self: a ATContext

-> m Accessible

Returns: a Accessible

Retrieves the Accessible using this context.

getAccessibleRole

aTContextGetAccessibleRole Source #

Arguments

:: (HasCallStack, MonadIO m, IsATContext a) 
=> a

self: a ATContext

-> m AccessibleRole

Returns: a AccessibleRole

Retrieves the accessible role of this context.

Properties

accessible

The Accessible that created the ATContext instance.

constructATContextAccessible :: (IsATContext o, MonadIO m, IsAccessible a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “accessible” property. This is rarely needed directly, but it is used by new.

getATContextAccessible :: (MonadIO m, IsATContext o) => o -> m Accessible Source #

Get the value of the “accessible” property. When overloading is enabled, this is equivalent to

get aTContext #accessible

accessibleRole

The accessible role used by the AT context.

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

constructATContextAccessibleRole :: (IsATContext o, MonadIO m) => AccessibleRole -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “accessible-role” property. This is rarely needed directly, but it is used by new.

getATContextAccessibleRole :: (MonadIO m, IsATContext o) => o -> m AccessibleRole Source #

Get the value of the “accessible-role” property. When overloading is enabled, this is equivalent to

get aTContext #accessibleRole

setATContextAccessibleRole :: (MonadIO m, IsATContext o) => o -> AccessibleRole -> m () Source #

Set the value of the “accessible-role” property. When overloading is enabled, this is equivalent to

set aTContext [ #accessibleRole := value ]

display

The Display for the ATContext.

clearATContextDisplay :: (MonadIO m, IsATContext o) => o -> m () Source #

Set the value of the “display” property to Nothing. When overloading is enabled, this is equivalent to

clear #display

constructATContextDisplay :: (IsATContext o, MonadIO m, IsDisplay a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “display” property. This is rarely needed directly, but it is used by new.

getATContextDisplay :: (MonadIO m, IsATContext o) => o -> m (Maybe Display) Source #

Get the value of the “display” property. When overloading is enabled, this is equivalent to

get aTContext #display

setATContextDisplay :: (MonadIO m, IsATContext o, IsDisplay a) => o -> a -> m () Source #

Set the value of the “display” property. When overloading is enabled, this is equivalent to

set aTContext [ #display := value ]

Signals

stateChange

type ATContextStateChangeCallback = IO () Source #

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

type C_ATContextStateChangeCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

afterATContextStateChange :: (IsATContext a, MonadIO m) => a -> ATContextStateChangeCallback -> m SignalHandlerId Source #

Connect a signal handler for the stateChange signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after aTContext #stateChange callback

onATContextStateChange :: (IsATContext a, MonadIO m) => a -> ATContextStateChangeCallback -> m SignalHandlerId Source #

Connect a signal handler for the stateChange signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on aTContext #stateChange callback