gi-atk-2.0.12: Atk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Atk.Objects.Registry

Contents

Description

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 #

Constructors

Registry (ManagedPtr Registry) 

Instances

GObject Registry Source # 
IsObject Registry Source # 
IsRegistry Registry Source # 
((~) * info (ResolveRegistryMethod t Registry), MethodInfo * info Registry p) => IsLabel t (Registry -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Registry -> p #

((~) * info (ResolveRegistryMethod t Registry), MethodInfo * info Registry p) => IsLabelProxy t (Registry -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Registry -> p #

HasAttributeList * Registry Source # 
type AttributeList Registry Source # 
type SignalList Registry Source # 

Methods

getFactory

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

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.