ObjectFactoryProtocol
public protocol ObjectFactoryProtocol : ObjectProtocol
This class is the base object class for a factory used to create an
accessible object for a specific GType. The function
atk_registry_set_factory_type() is normally called to store in the
registry the factory type to be used to create an accessible of a
particular GType.
The ObjectFactoryProtocol protocol exposes the methods and properties of an underlying AtkObjectFactory 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 ObjectFactory.
Alternatively, use ObjectFactoryRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkObjectFactoryinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
object_factory_ptrDefault implementationTyped pointer to the underlying
AtkObjectFactoryinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkObjectFactoryinstance.Declaration
Swift
var object_factory_ptr: UnsafeMutablePointer<AtkObjectFactory>! { get } -
Required Initialiser for types conforming to
ObjectFactoryProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
createAccessible(obj:Extension method) Provides an
AtkObjectthat implements an accessibility interface on behalf ofobjDeclaration
Swift
@inlinable func createAccessible<GObjectObjectT>(obj: GObjectObjectT) -> Atk.ObjectRef! where GObjectObjectT : ObjectProtocol -
getAccessibleType()Extension methodGets the GType of the accessible which is created by the factory.
Declaration
Swift
@inlinable func getAccessibleType() -> GType -
invalidate()Extension methodInform
factorythat it is no longer being used to create accessibles. When called,factorymay need to informAtkObjectswhich it has created that they need to be re-instantiated. Note: primarily used for runtime replacement ofAtkObjectFactorysin object registries.Declaration
Swift
@inlinable func invalidate() -
accessibleTypeExtension methodGets the GType of the accessible which is created by the factory.
Declaration
Swift
@inlinable var accessibleType: GType { get } -
parentExtension methodUndocumented
Declaration
Swift
@inlinable var parent: GObject { get }
View on GitHub
Install in Dash
ObjectFactoryProtocol Protocol Reference