ClosureExpressionProtocol

public protocol ClosureExpressionProtocol : ExpressionProtocol

An expression using a custom GClosure to compute the value from its parameters.

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

  • ptr

    Untyped pointer to the underlying GtkClosureExpression instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkClosureExpression instance.

    Default Implementation

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

    Declaration

    Swift

    var closure_expression_ptr: UnsafeMutablePointer<GtkClosureExpression>! { get }
  • Required Initialiser for types conforming to ClosureExpressionProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)