1.22 <GtkCClosureExpression>

Class: <GtkCClosureExpression>

It derives from <GtkExpression>.

A variant of <GtkClosureExpression> using a C closure.

Procedures

Procedure: cclosure-expression:new value-type marshal params callback-func ⇒ %return

Creates a <GtkExpression> that calls callback_func when it is evaluated.

This function is a variant of closure-expression:new that creates a <GClosure> by calling g_cclosure_new() with the given callback_func, user_data and user_destroy.

value-type

Passed: a class, or a GType number.

the type of the value that this expression evaluates to

marshal

Passed: a procedure, or #f.

marshaller used for creating a closure

See GClosureMarshal for how it is called.

params

Passed: a list or vector, each a <GtkExpression>.

expressions for each parameter

callback-func

Passed: a procedure.

callback used for creating a closure

See GCallback for how it is called.

%return

Returned: a <GtkCClosureExpression>.

a new <GtkExpression>

n-params

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

the number of params needed for evaluating closure

user-data

Not passed: guile-gi supplies it.

user data used for creating a closure

user-destroy

Not passed: guile-gi supplies it.

destroy notify for user-data

See GClosureNotify for how it is called.