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.
-
Untyped pointer to the underlying
GTypeFundamentalInfo
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
typeRegisterFundamental(typeID:
Extension methodtypeName: info: flags: ) Registers
type_id
as the predefined identifier andtype_name
as the name of a fundamental type. Iftype_id
is already registered, or a type namedtype_name
is already registered, the behaviour is undefined. The type system uses the information contained in theGTypeInfo
structure pointed to byinfo
and theGTypeFundamentalInfo
structure pointed to byfinfo
to manage the type and its instances. The value offlags
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 methodGTypeFundamentalFlags
describing the characteristics of the fundamental typeDeclaration
Swift
@inlinable var typeFlags: GLibObject.TypeFundamentalFlags { get set }