bind


Description:

[ DestroysInstance ]
public unowned ExpressionWatch bind (Object target, string property, Object? this_)

Bind target's property named property to this.

The value that this evaluates to is set via @set on target. This is repeated whenever this changes to ensure that the object's property stays synchronized with this.

If this's evaluation fails, target's property is not updated. You can ensure that this doesn't happen by using a fallback expression.

Note that this function takes ownership of this. If you want to keep it around, you should @ref it beforehand.

Parameters:

this

a Expression

target

the target object to bind to

property

name of the property on target to bind to

this_

the this argument for the evaluation of this

Returns:

a ExpressionWatch