Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
This object class is derived from AtkObject. It can be used as a basis for implementing accessible objects for GObjects which are not derived from GtkWidget. One example of its use is in providing an accessible object for GnomeCanvasItem in the GAIL library.
Synopsis
- newtype GObjectAccessible = GObjectAccessible (ManagedPtr GObjectAccessible)
- class (GObject o, IsDescendantOf GObjectAccessible o) => IsGObjectAccessible o
- toGObjectAccessible :: (MonadIO m, IsGObjectAccessible o) => o -> m GObjectAccessible
- gObjectAccessibleForObject :: (HasCallStack, MonadIO m, IsObject a) => a -> m Object
- gObjectAccessibleGetObject :: (HasCallStack, MonadIO m, IsGObjectAccessible a) => a -> m Object
Exported types
newtype GObjectAccessible Source #
Memory-managed wrapper type.
Instances
Eq GObjectAccessible Source # | |
Defined in GI.Atk.Objects.GObjectAccessible (==) :: GObjectAccessible -> GObjectAccessible -> Bool # (/=) :: GObjectAccessible -> GObjectAccessible -> Bool # | |
IsGValue GObjectAccessible Source # | Convert |
Defined in GI.Atk.Objects.GObjectAccessible toGValue :: GObjectAccessible -> IO GValue # fromGValue :: GValue -> IO GObjectAccessible # | |
ManagedPtrNewtype GObjectAccessible Source # | |
TypedObject GObjectAccessible Source # | |
Defined in GI.Atk.Objects.GObjectAccessible | |
GObject GObjectAccessible Source # | |
Defined in GI.Atk.Objects.GObjectAccessible | |
HasParentTypes GObjectAccessible Source # | |
Defined in GI.Atk.Objects.GObjectAccessible | |
type ParentTypes GObjectAccessible Source # | |
Defined in GI.Atk.Objects.GObjectAccessible |
class (GObject o, IsDescendantOf GObjectAccessible o) => IsGObjectAccessible o Source #
Type class for types which can be safely cast to GObjectAccessible
, for instance with toGObjectAccessible
.
Instances
(GObject o, IsDescendantOf GObjectAccessible o) => IsGObjectAccessible o Source # | |
Defined in GI.Atk.Objects.GObjectAccessible |
toGObjectAccessible :: (MonadIO m, IsGObjectAccessible o) => o -> m GObjectAccessible Source #
Cast to GObjectAccessible
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
forObject
gObjectAccessibleForObject Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> m Object | Returns: a |
Gets the accessible object for the specified obj
.
getObject
gObjectAccessibleGetObject Source #
:: (HasCallStack, MonadIO m, IsGObjectAccessible a) | |
=> a |
|
-> m Object | Returns: a |
Gets the GObject for which obj
is the accessible object.