CClosureExpressionProtocol

public protocol CClosureExpressionProtocol : ExpressionProtocol

A variant of GtkClosureExpression using a C closure.

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

  • ptr

    Untyped pointer to the underlying GtkCClosureExpression instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkCClosureExpression instance.

    Default Implementation

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

    Declaration

    Swift

    var cclosure_expression_ptr: UnsafeMutablePointer<GtkCClosureExpression>! { get }
  • Required Initialiser for types conforming to CClosureExpressionProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)