ParamSpecTypeInfoProtocol
public protocol ParamSpecTypeInfoProtocol
This structure is used to provide the type system with the information required to initialize and destruct (finalize) a parameter’s class and instances thereof.
The initialized structure is passed to the g_param_type_register_static()
The type system will perform a deep copy of this structure, so its memory
does not need to be persistent across invocation of
g_param_type_register_static()
.
The ParamSpecTypeInfoProtocol
protocol exposes the methods and properties of an underlying GParamSpecTypeInfo
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 ParamSpecTypeInfo
.
Alternatively, use ParamSpecTypeInfoRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GParamSpecTypeInfo
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GParamSpecTypeInfo
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GParamSpecTypeInfo
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GParamSpecTypeInfo>! { get }
-
Required Initialiser for types conforming to
ParamSpecTypeInfoProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
paramTypeRegisterStatic(name:
Extension method) Registers
name
as the name of a new static type derived fromG_TYPE_PARAM
.The type system uses the information contained in the
GParamSpecTypeInfo
structure pointed to byinfo
to manage theGParamSpec
type and its instances.Declaration
Swift
@inlinable func paramTypeRegisterStatic(name: UnsafePointer<gchar>!) -> GType
-
instanceSize
Extension methodSize of the instance (object) structure.
Declaration
Swift
@inlinable var instanceSize: guint16 { get set }
-
nPreallocs
Extension methodPrior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the slice allocator now.
Declaration
Swift
@inlinable var nPreallocs: guint16 { get set }
-
valueType
Extension methodThe
GType
of values conforming to thisGParamSpec
Declaration
Swift
@inlinable var valueType: GType { get set }