Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- newtype Registry = Registry (ManagedPtr Registry)
- class GObject o => IsRegistry o
- toRegistry :: IsRegistry o => o -> IO Registry
- noRegistry :: Maybe Registry
- 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
GObject Registry Source # | |
IsObject Registry Source # | |
IsRegistry Registry Source # | |
((~) * info (ResolveRegistryMethod t Registry), MethodInfo * info Registry p) => IsLabel t (Registry -> p) Source # | |
((~) * info (ResolveRegistryMethod t Registry), MethodInfo * info Registry p) => IsLabelProxy t (Registry -> p) Source # | |
HasAttributeList * Registry Source # | |
type AttributeList Registry Source # | |
type SignalList Registry Source # | |
class GObject o => IsRegistry o Source #
(GObject a, UnknownAncestorError Constraint Registry a) => IsRegistry a Source # | |
IsRegistry Registry Source # | |
toRegistry :: IsRegistry o => o -> IO Registry Source #
Methods
getFactory
data RegistryGetFactoryMethodInfo Source #
((~) * signature (GType -> m ObjectFactory), MonadIO m, IsRegistry a) => MethodInfo * RegistryGetFactoryMethodInfo a signature Source # | |
:: (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 #
((~) * signature (GType -> m GType), MonadIO m, IsRegistry a) => MethodInfo * RegistryGetFactoryTypeMethodInfo a signature Source # | |
registryGetFactoryType Source #
:: (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 #
((~) * signature (GType -> GType -> m ()), MonadIO m, IsRegistry a) => MethodInfo * RegistrySetFactoryTypeMethodInfo a signature Source # | |
registrySetFactoryType Source #
:: (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
.