bind_property


Description:

[ CCode ( cname = "g_object_bind_property_with_closures" ) ]
[ Version ( since = "2.26" ) ]
public unowned Binding bind_property (string source_property, Object target, string target_property, BindingFlags flags = DEFAULT, owned BindingTransformFunc? transform_to = null, owned BindingTransformFunc? transform_from = null)

Creates a binding between source_property on this and target_property on target, allowing you to set the transformation functions to be used by the binding.

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

Parameters:

this

the source Object

source_property

the property on this to bind

target

the target Object

target_property

the property on target to bind

flags

flags to pass to Binding

transform_to

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

transform_from

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

Returns:

the Binding instance representing the binding between the two Object instances. The binding is released whenever the Binding reference count reaches zero.