ClosureExpression.this

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.

  1. this(GtkClosureExpression* gtkClosureExpression, bool ownedRef)
  2. this(GType valueType, Closure closure, Expression[] params)
    class ClosureExpression

Parameters

valueType GType

the type of the value that this expression evaluates to

closure Closure

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

params Expression[]

expressions for each parameter

Return Value

a new GtkExpression

Throws

ConstructionException GTK+ fails to create the object.

Meta