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.

  • ptr

    Untyped pointer to the underlying AtkObjectFactory instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • object_factory_ptr Default implementation

    Typed 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)

ObjectFactory Class: ObjectFactoryProtocol extension (methods and fields)

  • createAccessible(obj:) Extension method

    Provides an AtkObject that implements an accessibility interface on behalf of obj

    Declaration

    Swift

    @inlinable
    func createAccessible<GObjectObjectT>(obj: GObjectObjectT) -> Atk.ObjectRef! where GObjectObjectT : ObjectProtocol
  • getAccessibleType() Extension method

    Gets the GType of the accessible which is created by the factory.

    Declaration

    Swift

    @inlinable
    func getAccessibleType() -> GType
  • invalidate() Extension method

    Inform factory that it is no longer being used to create accessibles. When called, factory may need to inform AtkObjects which it has created that they need to be re-instantiated. Note: primarily used for runtime replacement of AtkObjectFactorys in object registries.

    Declaration

    Swift

    @inlinable
    func invalidate()
  • accessibleType Extension method

    Gets the GType of the accessible which is created by the factory.

    Declaration

    Swift

    @inlinable
    var accessibleType: GType { get }
  • parent Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parent: GObject { get }