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
AtkObjectFactory
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
object_factory_ptr
Default implementationTyped pointer to the underlying
AtkObjectFactory
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkObjectFactory
instance.Declaration
Swift
var object_factory_ptr: UnsafeMutablePointer<AtkObjectFactory>! { get }
-
Required Initialiser for types conforming to
ObjectFactoryProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
createAccessible(obj:
Extension method) Provides an
AtkObject
that implements an accessibility interface on behalf ofobj
Declaration
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
factory
that it is no longer being used to create accessibles. When called,factory
may need to informAtkObjects
which it has created that they need to be re-instantiated. Note: primarily used for runtime replacement ofAtkObjectFactorys
in object registries.Declaration
Swift
@inlinable func invalidate()
-
accessibleType
Extension methodGets the GType of the accessible which is created by the factory.
Declaration
Swift
@inlinable var accessibleType: GType { get }
-
parent
Extension methodUndocumented
Declaration
Swift
@inlinable var parent: GObject { get }