InterfaceInfoProtocol
public protocol InterfaceInfoProtocol
A structure that provides information to the type system which is used specifically for managing interface types.
The InterfaceInfoProtocol
protocol exposes the methods and properties of an underlying GInterfaceInfo
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 InterfaceInfo
.
Alternatively, use InterfaceInfoRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GInterfaceInfo
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GInterfaceInfo
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GInterfaceInfo
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GInterfaceInfo>! { get }
-
Required Initialiser for types conforming to
InterfaceInfoProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeAddInterfaceStatic(instanceType:
Extension methodinterfaceType: ) Adds
interface_type
to the staticinstance_type
. The information contained in theGInterfaceInfo
structure pointed to byinfo
is used to manage the relationship.Declaration
Swift
@inlinable func typeAddInterfaceStatic(instanceType: GType, interfaceType: GType)
-
interfaceInit
Extension methodlocation of the interface initialization function
Declaration
Swift
@inlinable var interfaceInit: GInterfaceInitFunc! { get set }
-
interfaceFinalize
Extension methodlocation of the interface finalization function
Declaration
Swift
@inlinable var interfaceFinalize: GInterfaceFinalizeFunc! { get set }
-
interfaceData
Extension methoduser-supplied data passed to the interface init/finalize functions
Declaration
Swift
@inlinable var interfaceData: gpointer? { get set }