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.

  • ptr

    Untyped pointer to the underlying GParamSpecTypeInfo instance.

    Declaration

    Swift

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

    Typed 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)

ParamSpecTypeInfo Record: ParamSpecTypeInfoProtocol extension (methods and fields)

  • Registers name as the name of a new static type derived from G_TYPE_PARAM.

    The type system uses the information contained in the GParamSpecTypeInfo structure pointed to by info to manage the GParamSpec type and its instances.

    Declaration

    Swift

    @inlinable
    func paramTypeRegisterStatic(name: UnsafePointer<gchar>!) -> GType
  • instanceSize Extension method

    Size of the instance (object) structure.

    Declaration

    Swift

    @inlinable
    var instanceSize: guint16 { get set }
  • nPreallocs Extension method

    Prior 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 method

    The GType of values conforming to this GParamSpec

    Declaration

    Swift

    @inlinable
    var valueType: GType { get set }