ParamSpecOverrideProtocol

public protocol ParamSpecOverrideProtocol : ParamSpecProtocol

A GParamSpec derived structure that redirects operations to other types of GParamSpec.

All operations other than getting or setting the value are redirected, including accessing the nick and blurb, validating a value, and so forth.

See g_param_spec_get_redirect_target() for retrieving the overridden property. GParamSpecOverride is used in implementing g_object_class_override_property(), and will not be directly useful unless you are implementing a new base type similar to GObject.

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

  • ptr

    Untyped pointer to the underlying GParamSpecOverride instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GParamSpecOverride instance.

    Default Implementation

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

    Declaration

    Swift

    var param_spec_override_ptr: UnsafeMutablePointer<GParamSpecOverride>! { get }
  • Required Initialiser for types conforming to ParamSpecOverrideProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)