1.28 <GtkClosureExpression>

Class: <GtkClosureExpression>

It derives from <GtkExpression>.

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

Procedures

Procedure: closure-expression:new value-type closure [params] ⇒ %return

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.

value-type

Passed: a class, or a GType number.

the type of the value that this expression evaluates to

closure

Passed: a <GClosure>.

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

params

Passed, or left out: a list or vector, each a <GtkExpression>, or #f.

expressions for each parameter

%return

Returned: a <GtkClosureExpression>.

a new <GtkExpression>

n-params

Not passed: guile-gi gives the length of params.

the number of params needed for evaluating closure