TypeInstanceRef

public struct TypeInstanceRef : TypeInstanceProtocol

The TypeInstanceRef type acts as a lightweight Swift reference to an underlying GTypeInstance instance. It exposes methods that can operate on this data type through TypeInstanceProtocol conformance. Use TypeInstanceRef only as an unowned reference to an existing GTypeInstance instance.

An opaque structure used as the base of all type instances.

  • ptr
    Untyped pointer to the underlying `GTypeInstance` instance.
    

    For type-safe access, use the generated, typed pointer _ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer

TypeInstance Record