| 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.ObjectFactory
Description
The base object class for a factory used to create accessible objects for objects of a specific GType.
This class is the base object class for a factory used to create an
accessible object for a specific GType. The function
registrySetFactoryType is normally called to store in the
registry the factory type to be used to create an accessible of a
particular GType.
Synopsis
- newtype ObjectFactory = ObjectFactory (ManagedPtr ObjectFactory)
- class (GObject o, IsDescendantOf ObjectFactory o) => IsObjectFactory o
- toObjectFactory :: (MonadIO m, IsObjectFactory o) => o -> m ObjectFactory
- type family ResolveObjectFactoryMethod (t :: Symbol) o where ...
- data ObjectFactoryCreateAccessibleMethodInfo
- objectFactoryCreateAccessible :: (HasCallStack, MonadIO m, IsObjectFactory a, IsObject b) => a -> b -> m Object
- data ObjectFactoryGetAccessibleTypeMethodInfo
- objectFactoryGetAccessibleType :: (HasCallStack, MonadIO m, IsObjectFactory a) => a -> m GType
- data ObjectFactoryInvalidateMethodInfo
- objectFactoryInvalidate :: (HasCallStack, MonadIO m, IsObjectFactory a) => a -> m ()
Exported types
newtype ObjectFactory Source #
Memory-managed wrapper type.
Constructors
| ObjectFactory (ManagedPtr ObjectFactory) |
Instances
class (GObject o, IsDescendantOf ObjectFactory o) => IsObjectFactory o Source #
Type class for types which can be safely cast to ObjectFactory, for instance with toObjectFactory.
Instances
| (GObject o, IsDescendantOf ObjectFactory o) => IsObjectFactory o Source # | |
Defined in GI.Atk.Objects.ObjectFactory | |
toObjectFactory :: (MonadIO m, IsObjectFactory o) => o -> m ObjectFactory Source #
Cast to ObjectFactory, for types for which this is known to be safe. For general casts, use castTo.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, createAccessible, forceFloating, freezeNotify, getv, invalidate, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAccessibleType, getData, getProperty, getQdata.
Setters
type family ResolveObjectFactoryMethod (t :: Symbol) o where ... Source #
Equations
createAccessible
data ObjectFactoryCreateAccessibleMethodInfo Source #
Instances
| (signature ~ (b -> m Object), MonadIO m, IsObjectFactory a, IsObject b) => OverloadedMethod ObjectFactoryCreateAccessibleMethodInfo a signature Source # | |
Defined in GI.Atk.Objects.ObjectFactory Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo ObjectFactoryCreateAccessibleMethodInfo (a :: Type) Source # | |
Defined in GI.Atk.Objects.ObjectFactory Methods | |
objectFactoryCreateAccessible Source #
Arguments
| :: (HasCallStack, MonadIO m, IsObjectFactory a, IsObject b) | |
| => a |
|
| -> b |
|
| -> m Object | Returns: an |
Provides an Object that implements an accessibility interface
on behalf of obj
getAccessibleType
data ObjectFactoryGetAccessibleTypeMethodInfo Source #
Instances
| (signature ~ m GType, MonadIO m, IsObjectFactory a) => OverloadedMethod ObjectFactoryGetAccessibleTypeMethodInfo a signature Source # | |
Defined in GI.Atk.Objects.ObjectFactory Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo ObjectFactoryGetAccessibleTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Atk.Objects.ObjectFactory Methods | |
objectFactoryGetAccessibleType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsObjectFactory a) | |
| => a |
|
| -> m GType | Returns: the type of the accessible which is created by the |
Gets the GType of the accessible which is created by the factory.
invalidate
data ObjectFactoryInvalidateMethodInfo Source #
Instances
| (signature ~ m (), MonadIO m, IsObjectFactory a) => OverloadedMethod ObjectFactoryInvalidateMethodInfo a signature Source # | |
Defined in GI.Atk.Objects.ObjectFactory Methods overloadedMethod :: a -> signature # | |
| OverloadedMethodInfo ObjectFactoryInvalidateMethodInfo (a :: Type) Source # | |
Defined in GI.Atk.Objects.ObjectFactory Methods | |
objectFactoryInvalidate Source #
Arguments
| :: (HasCallStack, MonadIO m, IsObjectFactory a) | |
| => a |
|
| -> m () |
Inform factory that it is no longer being used to create
accessibles. When called, factory may need to inform
AtkObjects which it has created that they need to be re-instantiated.
Note: primarily used for runtime replacement of AtkObjectFactorys
in object registries.