ConstantExpressionProtocol

public protocol ConstantExpressionProtocol : ExpressionProtocol

A constant value in a GtkExpression.

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

  • ptr

    Untyped pointer to the underlying GtkConstantExpression instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkConstantExpression instance.

    Default Implementation

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

    Declaration

    Swift

    var constant_expression_ptr: UnsafeMutablePointer<GtkConstantExpression>! { get }
  • Required Initialiser for types conforming to ConstantExpressionProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

ConstantExpression Class: ConstantExpressionProtocol extension (methods and fields)

  • getValue() Extension method

    Gets the value that a constant expression evaluates to.

    Declaration

    Swift

    @inlinable
    func getValue() -> GLibObject.ValueRef!
  • value Extension method

    Gets the value that a constant expression evaluates to.

    Declaration

    Swift

    @inlinable
    var value: GLibObject.ValueRef! { get }