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

GI.Gtk.Interfaces.Accessible

Description

GtkAccessible is an interface for describing UI elements for Assistive Technologies.

Every accessible implementation has:

The role cannot be changed after instantiating a GtkAccessible 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 GtkWidget visibility changes, the AccessibleStateHidden state will also change to reflect the Widget:visible property.

Synopsis

Exported types

newtype Accessible Source #

Memory-managed wrapper type.

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

accessibleGetAccessibleRole Source #

Arguments

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

self: a GtkAccessible

-> m AccessibleRole

Returns: a GtkAccessibleRole

Retrieves the GtkAccessibleRole for the given GtkAccessible.

resetProperty

accessibleResetProperty Source #

Arguments

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

self: a GtkAccessible

-> AccessibleProperty

property: a GtkAccessibleProperty

-> m () 

Resets the accessible property to its default value.

resetRelation

accessibleResetRelation Source #

Arguments

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

self: a GtkAccessible

-> AccessibleRelation

relation: a GtkAccessibleRelation

-> m () 

Resets the accessible relation to its default value.

resetState

accessibleResetState Source #

Arguments

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

self: a GtkAccessible

-> AccessibleState

state: a GtkAccessibleState

-> m () 

Resets the accessible state to its default value.

updateProperty

accessibleUpdateProperty Source #

Arguments

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

self: a GtkAccessible

-> [AccessibleProperty]

properties: an array of GtkAccessibleProperty

-> [GValue]

values: an array of GValues, one for each property

-> m () 

Updates an array of accessible properties.

This function should be called by GtkWidget 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 GtkAccessible

-> [AccessibleRelation]

relations: an array of GtkAccessibleRelation

-> [GValue]

values: an array of GValues, one for each relation

-> m () 

Updates an array of accessible relations.

This function should be called by GtkWidget 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 GtkAccessible

-> [AccessibleState]

states: an array of GtkAccessibleState

-> [GValue]

values: an array of GValues, one for each state

-> m () 

Updates an array of accessible states.

This function should be called by GtkWidget 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 GtkAccessible 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 ]