TypeFundamentalInfoProtocol

public protocol TypeFundamentalInfoProtocol

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.

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

  • 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 }

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

    func typeRegisterFundamental(typeID type_id: GType, typeName type_name: UnsafePointer<gchar>, info: TypeInfoProtocol, flags: TypeFlags) -> GType
  • typeFlags Extension method

    GTypeFundamentalFlags describing the characteristics of the fundamental type

    Declaration

    Swift

    var typeFlags: GTypeFundamentalFlags { get set }