5.1 GBindingTransformFunc

Callback: GBindingTransformFunc

A procedure given for it is called as (procedure binding from-value to-value) ⇒ %return.

A function to be called to transform from-value to to-value.

If this is the transform-to function of a binding, then from-value is the source-property on the source object, and to-value is the target-property on the target object. If this is the transform-from function of a bidirectional binding, then those roles are reversed.

binding

Passed: a <GBinding>.

a <GBinding>

from-value

Passed: a <GValue>.

the <GValue> containing the value to transform

to-value

Passed: a <GValue>.

the <GValue> in which to store the transformed value

%return

Returned: a boolean.

#t if the transformation was successful, and #f otherwise

user-data

Not passed: it is the user data that guile-gi supplied.

data passed to the transform function