bind_with_closures


Description:

public void bind_with_closures (string source_property, Object target, string target_property, BindingFlags flags, Closure? transform_to, Closure? transform_from)

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 SYNC_CREATE is automatically specified.

This function is the language bindings friendly version of dzl_binding_group_bind_property_full, using Closures instead of function pointers.

See: bind_property.

Parameters:

this

the BindingGroup

source_property

the property on the source to bind

target

the target Object

target_property

the property on target to bind

flags

the flags used to create the Binding

transform_to

a Closure wrapping the transformation function from the source object to the target, or null to use the default

transform_from

a Closure wrapping the transformation function from the target to the source object, or null to use the default




2022 vala-language.org