TypePluginClassProtocol
public protocol TypePluginClassProtocol
The GTypePlugin
interface is used by the type system in order to handle
the lifecycle of dynamically loaded types.
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.
-
Untyped pointer to the underlying
GTypePluginClass
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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 }
-
Required Initialiser for types conforming to
TypePluginClassProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
usePlugin
Extension methodIncreases the use count of the plugin.
Declaration
Swift
@inlinable var usePlugin: GTypePluginUse! { get set }
-
unusePlugin
Extension methodDecreases the use count of the plugin.
Declaration
Swift
@inlinable var unusePlugin: GTypePluginUnuse! { get set }
-
completeTypeInfo
Extension methodFills in the
GTypeInfo
andGTypeValueTable
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 methodFills 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 }