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

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

Exported types

newtype Registry Source #

Memory-managed wrapper type.

Constructors

Registry (ManagedPtr Registry) 

Instances

Instances details
Eq Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

GObject Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

ManagedPtrNewtype Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

TypedObject Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

Methods

glibType :: IO GType #

HasParentTypes Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

HasAttributeList Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

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

Defined in GI.Atk.Objects.Registry

Methods

getField :: Registry -> p #

(info ~ ResolveRegistryMethod t Registry, OverloadedMethodInfo info Registry) => IsLabel t (MethodProxy info Registry) Source # 
Instance details

Defined in GI.Atk.Objects.Registry

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

Defined in GI.Atk.Objects.Registry

Methods

fromLabel :: Registry -> p #

IsGValue (Maybe Registry) Source #

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

Instance details

Defined in GI.Atk.Objects.Registry

type AttributeList Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

type ParentTypes Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

type SignalList Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

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

Instances details
(GObject o, IsDescendantOf Registry o) => IsRegistry o Source # 
Instance details

Defined in GI.Atk.Objects.Registry

toRegistry :: (MonadIO m, IsRegistry o) => o -> m Registry Source #

Cast to Registry, for types for which this is known to be safe. For general casts, use castTo.

Methods

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

Equations

ResolveRegistryMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveRegistryMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveRegistryMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveRegistryMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveRegistryMethod "getv" o = ObjectGetvMethodInfo 
ResolveRegistryMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveRegistryMethod "notify" o = ObjectNotifyMethodInfo 
ResolveRegistryMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveRegistryMethod "ref" o = ObjectRefMethodInfo 
ResolveRegistryMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveRegistryMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveRegistryMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveRegistryMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveRegistryMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveRegistryMethod "unref" o = ObjectUnrefMethodInfo 
ResolveRegistryMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveRegistryMethod "getData" o = ObjectGetDataMethodInfo 
ResolveRegistryMethod "getFactory" o = RegistryGetFactoryMethodInfo 
ResolveRegistryMethod "getFactoryType" o = RegistryGetFactoryTypeMethodInfo 
ResolveRegistryMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveRegistryMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveRegistryMethod "setData" o = ObjectSetDataMethodInfo 
ResolveRegistryMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveRegistryMethod "setFactoryType" o = RegistrySetFactoryTypeMethodInfo 
ResolveRegistryMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveRegistryMethod l o = MethodResolutionFailed l o :: Type 

getFactory

data RegistryGetFactoryMethodInfo Source #

Instances

Instances details
(signature ~ (GType -> m ObjectFactory), MonadIO m, IsRegistry a) => OverloadedMethod RegistryGetFactoryMethodInfo a signature Source # 
Instance details

Defined in GI.Atk.Objects.Registry

Methods

overloadedMethod :: a -> signature #

OverloadedMethodInfo RegistryGetFactoryMethodInfo (a :: Type) Source # 
Instance details

Defined in GI.Atk.Objects.Registry

registryGetFactory Source #

Arguments

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

registry: an Registry

-> GType

type: a GType with which to look up the associated ObjectFactory

-> m ObjectFactory

Returns: an ObjectFactory appropriate for creating AtkObjects appropriate for type.

Gets an ObjectFactory appropriate for creating AtkObjects appropriate for type.

getFactoryType

registryGetFactoryType Source #

Arguments

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

registry: an Registry

-> GType

type: a GType with which to look up the associated ObjectFactory subclass

-> m GType

Returns: a GType associated with type type

Provides a GType indicating the ObjectFactory subclass associated with type.

setFactoryType

data RegistrySetFactoryTypeMethodInfo Source #

Instances

Instances details
(signature ~ (GType -> GType -> m ()), MonadIO m, IsRegistry a) => OverloadedMethod RegistrySetFactoryTypeMethodInfo a signature Source # 
Instance details

Defined in GI.Atk.Objects.Registry

Methods

overloadedMethod :: a -> signature #

OverloadedMethodInfo RegistrySetFactoryTypeMethodInfo (a :: Type) Source # 
Instance details

Defined in GI.Atk.Objects.Registry

registrySetFactoryType Source #

Arguments

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

registry: the Registry in which to register the type association

-> GType

type: an Object type

-> GType

factoryType: an ObjectFactory type to associate with type. Must implement AtkObject appropriate for type.

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