| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Atk.Objects.Registry
Description
An object used to store the GType of the factories used to create an accessible object for an object of a particular GType.
The AtkRegistry is normally used to create appropriate ATK "peers" for user interface components. Application developers usually need only interact with the AtkRegistry by associating appropriate ATK implementation classes with GObject classes via the atk_registry_set_factory_type call, passing the appropriate GType for application custom widget classes.
Synopsis
- newtype Registry = Registry (ManagedPtr Registry)
- class (GObject o, IsDescendantOf Registry o) => IsRegistry o
- toRegistry :: (MonadIO m, IsRegistry o) => o -> m Registry
- type family ResolveRegistryMethod (t :: Symbol) o where ...
- data RegistryGetFactoryMethodInfo
- registryGetFactory :: (HasCallStack, MonadIO m, IsRegistry a) => a -> GType -> m ObjectFactory
- data RegistryGetFactoryTypeMethodInfo
- registryGetFactoryType :: (HasCallStack, MonadIO m, IsRegistry a) => a -> GType -> m GType
- data RegistrySetFactoryTypeMethodInfo
- registrySetFactoryType :: (HasCallStack, MonadIO m, IsRegistry a) => a -> GType -> GType -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| Registry (ManagedPtr Registry) |
Instances
class (GObject o, IsDescendantOf Registry o) => IsRegistry o Source #
Type class for types which can be safely cast to Registry, for instance with toRegistry.
Instances
| (GObject o, IsDescendantOf Registry o) => IsRegistry o Source # | |
Defined in GI.Atk.Objects.Registry | |
toRegistry :: (MonadIO m, IsRegistry o) => o -> m Registry Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getFactory, getFactoryType, getProperty, getQdata.
Setters
type family ResolveRegistryMethod (t :: Symbol) o where ... Source #
Equations
getFactory
data RegistryGetFactoryMethodInfo Source #
Instances
| (signature ~ (GType -> m ObjectFactory), MonadIO m, IsRegistry a) => OverloadedMethod RegistryGetFactoryMethodInfo a signature Source # | |
Defined in GI.Atk.Objects.Registry Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo RegistryGetFactoryMethodInfo (a :: Type) Source # | |
Defined in GI.Atk.Objects.Registry Methods | |
Arguments
| :: (HasCallStack, MonadIO m, IsRegistry a) | |
| => a |
|
| -> GType |
|
| -> m ObjectFactory | Returns: an |
Gets an ObjectFactory appropriate for creating AtkObjects
appropriate for type.
getFactoryType
data RegistryGetFactoryTypeMethodInfo Source #
Instances
| (signature ~ (GType -> m GType), MonadIO m, IsRegistry a) => OverloadedMethod RegistryGetFactoryTypeMethodInfo a signature Source # | |
Defined in GI.Atk.Objects.Registry Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo RegistryGetFactoryTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Atk.Objects.Registry Methods | |
registryGetFactoryType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsRegistry a) | |
| => a |
|
| -> GType |
|
| -> m GType | Returns: a |
Provides a GType indicating the ObjectFactory subclass
associated with type.
setFactoryType
data RegistrySetFactoryTypeMethodInfo Source #
Instances
| (signature ~ (GType -> GType -> m ()), MonadIO m, IsRegistry a) => OverloadedMethod RegistrySetFactoryTypeMethodInfo a signature Source # | |
Defined in GI.Atk.Objects.Registry Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo RegistrySetFactoryTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Atk.Objects.Registry Methods | |
registrySetFactoryType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsRegistry a) | |
| => a |
|
| -> GType |
|
| -> GType |
|
| -> m () |
Associate an ObjectFactory subclass with a GType. Note:
The associated factoryType will thereafter be responsible for
the creation of new Object implementations for instances
appropriate for type.