ClosureExpression


Description:

[ CCode ( has_construct_function = false , type = "GtkExpression*" ) ]
public ClosureExpression (Type value_type, Closure closure, owned Expression[]? @params)

Creates a `GtkExpression` that calls `closure` when it is evaluated.

`closure` is called with the `this` object and the results of evaluating the `params` expressions.

Parameters:

value_type

the type of the value that this expression evaluates to

closure

closure to call when evaluating this expression. If closure is floating, it is adopted

n_params

the number of params needed for evaluating `closure`

params

expressions for each parameter

Returns:

a new `GtkExpression`