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
AtkRegistryinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
registry_ptrDefault implementationTyped pointer to the underlying
AtkRegistryinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkRegistryinstance.Declaration
Swift
var registry_ptr: UnsafeMutablePointer<AtkRegistry>! { get } -
Required Initialiser for types conforming to
RegistryProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getFactory(type:Extension method) Gets an
AtkObjectFactoryappropriate for creatingAtkObjectsappropriate fortype.Declaration
Swift
@inlinable func getFactory(type: GType) -> Atk.ObjectFactoryRef! -
getFactory(type:Extension method) Provides a
GTypeindicating theAtkObjectFactorysubclass associated withtype.Declaration
Swift
@inlinable func getFactory(type: GType) -> GType -
setFactory(type:Extension methodfactoryType: ) Associate an
AtkObjectFactorysubclass with aGType. Note: The associatedfactory_typewill thereafter be responsible for the creation of newAtkObjectimplementations for instances appropriate fortype.Declaration
Swift
@inlinable func setFactory(type: GType, factoryType: GType) -
parentExtension methodUndocumented
Declaration
Swift
@inlinable var parent: GObject { get } -
factoryTypeRegistryExtension methodUndocumented
Declaration
Swift
@inlinable var factoryTypeRegistry: HashTableRef! { get } -
factorySingletonCacheExtension methodUndocumented
Declaration
Swift
@inlinable var factorySingletonCache: HashTableRef! { get }
View on GitHub
Install in Dash
RegistryProtocol Protocol Reference