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.Interfaces.Accessible

Description

GtkAccessible provides an interface for describing a UI element, like a Widget, in a way that can be consumed by Assistive Technologies, or “AT”. Every accessible implementation has:

The role cannot be changed after instantiating a Accessible implementation.

The attributes are updated every time a UI element's state changes in a way that should be reflected by assistive technologies. For instance, if a Widget visibility changes, the AccessibleStateHidden state will also change to reflect the Widget:visible property.

Synopsis

Exported types

newtype Accessible Source #

Memory-managed wrapper type.

Constructors

Accessible (ManagedPtr Accessible) 

Instances

Instances details
Eq Accessible Source # 
Instance details

Defined in GI.Gtk.Interfaces.Accessible

GObject Accessible Source # 
Instance details

Defined in GI.Gtk.Interfaces.Accessible

ManagedPtrNewtype Accessible Source # 
Instance details

Defined in GI.Gtk.Interfaces.Accessible

Methods

toManagedPtr :: Accessible -> ManagedPtr Accessible

TypedObject Accessible Source # 
Instance details

Defined in GI.Gtk.Interfaces.Accessible

Methods

glibType :: IO GType

HasParentTypes Accessible Source # 
Instance details

Defined in GI.Gtk.Interfaces.Accessible

IsGValue (Maybe Accessible) Source #

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

Instance details

Defined in GI.Gtk.Interfaces.Accessible

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Accessible Source # 
Instance details

Defined in GI.Gtk.Interfaces.Accessible

type ParentTypes Accessible = '[Object]

class (GObject o, IsDescendantOf Accessible o) => IsAccessible o Source #

Type class for types which can be safely cast to Accessible, for instance with toAccessible.

Instances

Instances details
(GObject o, IsDescendantOf Accessible o) => IsAccessible o Source # 
Instance details

Defined in GI.Gtk.Interfaces.Accessible

toAccessible :: (MonadIO m, IsAccessible o) => o -> m Accessible Source #

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

Methods

getAccessibleRole

resetProperty

accessibleResetProperty Source #

Arguments

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

self: a Accessible

-> AccessibleProperty

property: a AccessibleProperty

-> m () 

Resets the accessible property to its default value.

resetRelation

accessibleResetRelation Source #

Arguments

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

self: a Accessible

-> AccessibleRelation

relation: a AccessibleRelation

-> m () 

Resets the accessible relation to its default value.

resetState

accessibleResetState Source #

Arguments

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

self: a Accessible

-> AccessibleState

state: a AccessibleState

-> m () 

Resets the accessible state to its default value.

updateProperty

accessibleUpdateProperty Source #

Arguments

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

self: a Accessible

-> [AccessibleProperty]

properties: an array of AccessibleProperty

-> [GValue]

values: an array of GValues, one for each property

-> m () 

Updates an array of accessible properties.

This function should be called by Widget types whenever an accessible property change must be communicated to assistive technologies.

This function is meant to be used by language bindings.

updateRelation

accessibleUpdateRelation Source #

Arguments

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

self: a Accessible

-> [AccessibleRelation]

relations: an array of AccessibleRelation

-> [GValue]

values: an array of GValues, one for each relation

-> m () 

Updates an array of accessible relations.

This function should be called by Widget types whenever an accessible relation change must be communicated to assistive technologies.

This function is meant to be used by language bindings.

updateState

accessibleUpdateState Source #

Arguments

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

self: a Accessible

-> [AccessibleState]

states: an array of AccessibleState

-> [GValue]

values: an array of GValues, one for each state

-> m () 

Updates an array of accessible states.

This function should be called by Widget types whenever an accessible state change must be communicated to assistive technologies.

This function is meant to be used by language bindings.

Properties

accessibleRole

The accessible role of the given Accessible implementation.

The accessible role cannot be changed once set.

constructAccessibleAccessibleRole :: (IsAccessible 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.

getAccessibleAccessibleRole :: (MonadIO m, IsAccessible o) => o -> m AccessibleRole Source #

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

get accessible #accessibleRole

setAccessibleAccessibleRole :: (MonadIO m, IsAccessible o) => o -> AccessibleRole -> m () Source #

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

set accessible [ #accessibleRole := value ]