BindingGroup.bindWithClosures

Creates a binding between @source_property on the source object and @target_property on @target, allowing you to set the transformation functions to be used by the binding. The binding flags #G_BINDING_SYNC_CREATE is automatically specified.

This function is the language bindings friendly version of dzl_binding_group_bind_property_full(), using #GClosures instead of function pointers.

See: g_object_bind_property_with_closures().

class BindingGroup
void
bindWithClosures
(,
ObjectG target
,,
GBindingFlags flags
,
Closure transformTo
,)

Parameters

sourceProperty string

the property on the source to bind

target ObjectG

the target #GObject

targetProperty string

the property on @target to bind

flags GBindingFlags

the flags used to create the #GBinding

transformTo Closure

a #GClosure wrapping the transformation function from the source object to the @target, or %NULL to use the default

transformFrom Closure

a #GClosure wrapping the transformation function from the @target to the source object, or %NULL to use the default

Meta