InitiallyUnownedProtocol
public protocol InitiallyUnownedProtocol : ObjectProtocol
A type for objects that have an initially floating reference.
All the fields in the GInitiallyUnowned
structure are private to the
implementation and should never be accessed directly.
The InitiallyUnownedProtocol
protocol exposes the methods and properties of an underlying GInitiallyUnowned
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 InitiallyUnowned
.
Alternatively, use InitiallyUnownedRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GInitiallyUnowned
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
initially_unowned_ptr
Default implementationTyped pointer to the underlying
GInitiallyUnowned
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GInitiallyUnowned
instance.Declaration
Swift
var initially_unowned_ptr: UnsafeMutablePointer<GInitiallyUnowned>! { get }
-
Required Initialiser for types conforming to
InitiallyUnownedProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
gTypeInstance
Extension methodUndocumented
Declaration
Swift
@inlinable var gTypeInstance: GTypeInstance { get }