gi-atk
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

newtype ObjectFactory Source #

Memory-managed wrapper type.

Instances

Instances details
Eq ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

GObject ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

ManagedPtrNewtype ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

TypedObject ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

Methods

glibType :: IO GType #

HasParentTypes ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

HasAttributeList ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

(info ~ ResolveObjectFactoryMethod t ObjectFactory, OverloadedMethod info ObjectFactory p, HasField t ObjectFactory p) => HasField (t :: Symbol) ObjectFactory (p :: Type) Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

Methods

getField :: ObjectFactory -> p #

(info ~ ResolveObjectFactoryMethod t ObjectFactory, OverloadedMethodInfo info ObjectFactory) => IsLabel t (MethodProxy info ObjectFactory) Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

(info ~ ResolveObjectFactoryMethod t ObjectFactory, OverloadedMethod info ObjectFactory p) => IsLabel t (ObjectFactory -> p) Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

Methods

fromLabel :: ObjectFactory -> p #

IsGValue (Maybe ObjectFactory) Source #

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

Instance details

Defined in GI.Atk.Objects.ObjectFactory

type AttributeList ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

type ParentTypes ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

type SignalList ObjectFactory Source # 
Instance details

Defined in GI.Atk.Objects.ObjectFactory

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

Instances details
(GObject o, IsDescendantOf ObjectFactory o) => IsObjectFactory o Source # 
Instance details

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

type family ResolveObjectFactoryMethod (t :: Symbol) o where ... Source #

Equations

ResolveObjectFactoryMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveObjectFactoryMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveObjectFactoryMethod "createAccessible" o = ObjectFactoryCreateAccessibleMethodInfo 
ResolveObjectFactoryMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveObjectFactoryMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveObjectFactoryMethod "getv" o = ObjectGetvMethodInfo 
ResolveObjectFactoryMethod "invalidate" o = ObjectFactoryInvalidateMethodInfo 
ResolveObjectFactoryMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveObjectFactoryMethod "notify" o = ObjectNotifyMethodInfo 
ResolveObjectFactoryMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveObjectFactoryMethod "ref" o = ObjectRefMethodInfo 
ResolveObjectFactoryMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveObjectFactoryMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveObjectFactoryMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveObjectFactoryMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveObjectFactoryMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveObjectFactoryMethod "unref" o = ObjectUnrefMethodInfo 
ResolveObjectFactoryMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveObjectFactoryMethod "getAccessibleType" o = ObjectFactoryGetAccessibleTypeMethodInfo 
ResolveObjectFactoryMethod "getData" o = ObjectGetDataMethodInfo 
ResolveObjectFactoryMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveObjectFactoryMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveObjectFactoryMethod "setData" o = ObjectSetDataMethodInfo 
ResolveObjectFactoryMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveObjectFactoryMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveObjectFactoryMethod l o = MethodResolutionFailed l o :: Type 

createAccessible

objectFactoryCreateAccessible Source #

Arguments

:: (HasCallStack, MonadIO m, IsObjectFactory a, IsObject b) 
=> a

factory: The ObjectFactory associated with obj's object type

-> b

obj: a Object

-> m Object

Returns: an Object that implements an accessibility interface on behalf of obj

Provides an Object that implements an accessibility interface on behalf of obj

getAccessibleType

objectFactoryGetAccessibleType Source #

Arguments

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

factory: an ObjectFactory

-> m GType

Returns: the type of the accessible which is created by the factory. The value G_TYPE_INVALID is returned if no type if found.

Gets the GType of the accessible which is created by the factory.

invalidate

objectFactoryInvalidate Source #

Arguments

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

factory: an ObjectFactory to invalidate

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