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.

  • ptr

    Untyped pointer to the underlying AtkRegistry instance.

    Declaration

    Swift

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

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

Registry Class: RegistryProtocol extension (methods and fields)

  • getFactory(type:) Extension method

    Gets an AtkObjectFactory appropriate for creating AtkObjects appropriate for type.

    Declaration

    Swift

    @inlinable
    func getFactory(type: GType) -> Atk.ObjectFactoryRef!
  • getFactory(type:) Extension method

    Provides a GType indicating the AtkObjectFactory subclass associated with type.

    Declaration

    Swift

    @inlinable
    func getFactory(type: GType) -> GType
  • Associate an AtkObjectFactory subclass with a GType. Note: The associated factory_type will thereafter be responsible for the creation of new AtkObject implementations for instances appropriate for type.

    Declaration

    Swift

    @inlinable
    func setFactory(type: GType, factoryType: GType)
  • parent Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parent: GObject { get }
  • factoryTypeRegistry Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var factoryTypeRegistry: HashTableRef! { get }
  • factorySingletonCache Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var factorySingletonCache: HashTableRef! { get }