ParameterProtocol

public protocol ParameterProtocol

The GParameter struct is an auxiliary structure used to hand parameter name/value pairs to g_object_newv().

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

  • ptr

    Untyped pointer to the underlying GParameter instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GParameter instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GParameter>! { get }
  • Required Initialiser for types conforming to ParameterProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Parameter Record: ParameterProtocol extension (methods and fields)

  • name Extension method

    the parameter name

    Declaration

    Swift

    @inlinable
    var name: UnsafePointer<gchar>! { get set }
  • value Extension method

    the parameter value

    Declaration

    Swift

    @inlinable
    var value: GValue { get set }