RegistryProtocol
public protocol RegistryProtocol : ObjectProtocol
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.
The RegistryProtocol
protocol exposes the methods and properties of an underlying AtkRegistry
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Registry
.
Alternatively, use RegistryRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkRegistry
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
registry_ptr
Default implementationTyped pointer to the underlying
AtkRegistry
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkRegistry
instance.Declaration
Swift
var registry_ptr: UnsafeMutablePointer<AtkRegistry>! { get }
-
Required Initialiser for types conforming to
RegistryProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getFactory(type:
Extension method) Gets an
AtkObjectFactory
appropriate for creatingAtkObjects
appropriate fortype
.Declaration
Swift
@inlinable func getFactory(type: GType) -> Atk.ObjectFactoryRef!
-
getFactory(type:
Extension method) Provides a
GType
indicating theAtkObjectFactory
subclass associated withtype
.Declaration
Swift
@inlinable func getFactory(type: GType) -> GType
-
setFactory(type:
Extension methodfactoryType: ) Associate an
AtkObjectFactory
subclass with aGType
. Note: The associatedfactory_type
will thereafter be responsible for the creation of newAtkObject
implementations for instances appropriate fortype
.Declaration
Swift
@inlinable func setFactory(type: GType, factoryType: GType)
-
parent
Extension methodUndocumented
Declaration
Swift
@inlinable var parent: GObject { get }
-
factoryTypeRegistry
Extension methodUndocumented
Declaration
Swift
@inlinable var factoryTypeRegistry: HashTableRef! { get }
-
factorySingletonCache
Extension methodUndocumented
Declaration
Swift
@inlinable var factorySingletonCache: HashTableRef! { get }