gi-gtk-3.0.37: 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.Accessible

Description

The Accessible class is the base class for accessible implementations for Widget subclasses. It is a thin wrapper around Object, which adds facilities for associating a widget with its accessible object.

An accessible implementation for a third-party widget should derive from Accessible and implement the suitable interfaces from ATK, such as Text or Selection. To establish the connection between the widget class and its corresponding acccessible implementation, override the get_accessible vfunc in WidgetClass.

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

GObject Accessible Source # 
Instance details

Defined in GI.Gtk.Objects.Accessible

ManagedPtrNewtype Accessible Source # 
Instance details

Defined in GI.Gtk.Objects.Accessible

Methods

toManagedPtr :: Accessible -> ManagedPtr Accessible

TypedObject Accessible Source # 
Instance details

Defined in GI.Gtk.Objects.Accessible

Methods

glibType :: IO GType

HasParentTypes Accessible Source # 
Instance details

Defined in GI.Gtk.Objects.Accessible

IsGValue (Maybe Accessible) Source #

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

Instance details

Defined in GI.Gtk.Objects.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.Objects.Accessible

type ParentTypes Accessible = '[Object, 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.Objects.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

connectWidgetDestroyed

accessibleConnectWidgetDestroyed Source #

Arguments

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

accessible: a Accessible

-> m () 

Deprecated: (Since version 3.4)Use accessibleSetWidget and its vfuncs.

This function specifies the callback function to be called when the widget corresponding to a GtkAccessible is destroyed.

getWidget

accessibleGetWidget Source #

Arguments

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

accessible: a Accessible

-> m (Maybe Widget)

Returns: pointer to the Widget corresponding to the Accessible, or Nothing.

Gets the Widget corresponding to the Accessible. The returned widget does not have a reference added, so you do not need to unref it.

Since: 2.22

setWidget

accessibleSetWidget Source #

Arguments

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

accessible: a Accessible

-> Maybe b

widget: a Widget or Nothing to unset

-> m () 

Sets the Widget corresponding to the Accessible.

accessible will not hold a reference to widget. It is the caller’s responsibility to ensure that when widget is destroyed, the widget is unset by calling this function again with widget set to Nothing.

Since: 2.22

Properties

widget

No description available in the introspection data.

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

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

clear #widget

constructAccessibleWidget :: (IsAccessible o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #

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

getAccessibleWidget :: (MonadIO m, IsAccessible o) => o -> m (Maybe Widget) Source #

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

get accessible #widget

setAccessibleWidget :: (MonadIO m, IsAccessible o, IsWidget a) => o -> a -> m () Source #

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

set accessible [ #widget := value ]