GObject.Object.prototype.bind_property_full
function bind_property_full(source_property: String, target: GObject.Object, target_property: String, flags: GObject.BindingFlags, transform_to: Function, transform_from: Function): GObject.Binding { // Gjs wrapper for g_object_bind_property_with_closures() }
Creates a binding between source_property on source 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 GObject.Object.prototype.bind_property_full, using #GClosures instead of function pointers.
Since 2.26
- source_property
the property on source to bind
- target
the target GObject.Object
- target_property
the property on target to bind
- flags
flags to pass to GObject.Binding
- transform_to
a GObject.Closure wrapping the transformation function from the source to the target, or null to use the default
- transform_from
a GObject.Closure wrapping the transformation function from the target to the source, or null to use the default
- Returns
the GObject.Binding instance representing the binding between the two GObject.Object instances. The binding is released whenever the GObject.Binding reference count reaches zero.