TypeInterfaceProtocol

public protocol TypeInterfaceProtocol

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

An opaque structure used as the base of all interface types.

  • ptr

    Untyped pointer to the underlying GTypeInterface instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GTypeInterface instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GTypeInterface>! { get }

TypeInterface Record: TypeInterfaceProtocol extension (methods and fields)

  • peekParent() Extension method

    Returns the corresponding GTypeInterface structure of the parent type of the instance type to which g_iface belongs. This is useful when deriving the implementation of an interface from the parent type and then possibly overriding some methods.

    Declaration

    Swift

    @inlinable
    func peekParent() -> TypeInterfaceRef!
  • typeDefaultInterfaceUnref() Extension method

    Decrements the reference count for the type corresponding to the interface default vtable g_iface. If the type is dynamic, then when no one is using the interface and all references have been released, the finalize function for the interface’s default vtable (the class_finalize member of GTypeInfo) will be called.

    Declaration

    Swift

    @inlinable
    func typeDefaultInterfaceUnref()