TypeFundamentalInfoProtocol

public protocol TypeFundamentalInfoProtocol

A structure that provides information to the type system which is used specifically for managing fundamental types.

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

  • ptr

    Untyped pointer to the underlying GTypeFundamentalInfo instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GTypeFundamentalInfo instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GTypeFundamentalInfo>! { get }
  • Required Initialiser for types conforming to TypeFundamentalInfoProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

TypeFundamentalInfo Record: TypeFundamentalInfoProtocol extension (methods and fields)

  • Registers type_id as the predefined identifier and type_name as the name of a fundamental type. If type_id is already registered, or a type named type_name is already registered, the behaviour is undefined. The type system uses the information contained in the GTypeInfo structure pointed to by info and the GTypeFundamentalInfo structure pointed to by finfo to manage the type and its instances. The value of flags determines additional characteristics of the fundamental type.

    Declaration

    Swift

    @inlinable
    func typeRegisterFundamental<TypeInfoT>(typeID: GType, typeName: UnsafePointer<gchar>!, info: TypeInfoT, flags: TypeFlags) -> GType where TypeInfoT : TypeInfoProtocol
  • typeFlags Extension method

    GTypeFundamentalFlags describing the characteristics of the fundamental type

    Declaration

    Swift

    @inlinable
    var typeFlags: GLibObject.TypeFundamentalFlags { get set }