gi-atk-2.0.21: Atk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
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 #

Memory-managed wrapper type.

Constructors

Registry (ManagedPtr Registry) 
Instances
Eq Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

Methods

(==) :: Registry -> Registry -> Bool

(/=) :: Registry -> Registry -> Bool

GObject Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

Methods

gobjectType :: IO GType

IsGValue Registry Source #

Convert Registry to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Atk.Objects.Registry

Methods

toGValue :: Registry -> IO GValue

fromGValue :: GValue -> IO Registry

HasParentTypes Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

type ParentTypes Registry Source # 
Instance details

Defined in GI.Atk.Objects.Registry

type ParentTypes Registry = Object ': ([] :: [Type])

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

noRegistry :: Maybe Registry Source #

A convenience alias for Nothing :: Maybe Registry.

Methods

Overloaded methods

getFactory

registryGetFactory Source #

Arguments

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

registry: an tRegistry

-> GType

type: a tGType with which to look up the associated tObjectFactory

-> m ObjectFactory

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

Gets an tObjectFactory appropriate for creating AtkObjects appropriate for type.

getFactoryType

registryGetFactoryType Source #

Arguments

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

registry: an tRegistry

-> GType

type: a tGType with which to look up the associated tObjectFactory subclass

-> m GType

Returns: a tGType associated with type type

Provides a tGType indicating the tObjectFactory subclass associated with type.

setFactoryType

registrySetFactoryType Source #

Arguments

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

registry: the tRegistry in which to register the type association

-> GType

type: an tObject type

-> GType

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

-> m () 

Associate an tObjectFactory subclass with a tGType. Note: The associated factoryType will thereafter be responsible for the creation of new tObject implementations for instances appropriate for type.