TypePluginClassProtocol

public protocol TypePluginClassProtocol

The TypePluginClassProtocol protocol exposes the methods and properties of an underlying GTypePluginClass 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 TypePluginClass. Alternatively, use TypePluginClassRef as a lighweight, unowned reference if you already have an instance you just want to use.

The GTypePlugin interface is used by the type system in order to handle the lifecycle of dynamically loaded types.

  • ptr

    Untyped pointer to the underlying GTypePluginClass instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GTypePluginClass instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GTypePluginClass instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GTypePluginClass>! { get }

TypePluginClass Record: TypePluginClassProtocol extension (methods and fields)

  • usePlugin Extension method

    Increases the use count of the plugin.

    Declaration

    Swift

    @inlinable
    var usePlugin: GTypePluginUse! { get set }
  • unusePlugin Extension method

    Decreases the use count of the plugin.

    Declaration

    Swift

    @inlinable
    var unusePlugin: GTypePluginUnuse! { get set }
  • completeTypeInfo Extension method

    Fills in the GTypeInfo and GTypeValueTable structs for the type. The structs are initialized with `memset(s, 0, sizeof (s))` before calling this function.

    Declaration

    Swift

    @inlinable
    var completeTypeInfo: GTypePluginCompleteTypeInfo! { get set }
  • completeInterfaceInfo Extension method

    Fills in missing parts of the GInterfaceInfo for the interface. The structs is initialized with `memset(s, 0, sizeof (s))` before calling this function.

    Declaration

    Swift

    @inlinable
    var completeInterfaceInfo: GTypePluginCompleteInterfaceInfo! { get set }