ObjectWrap.connectPropertyChange
gulong connectPropertyChange(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == atk.property_values.PropertyValues)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : atk.object.ObjectWrap)))
&& Parameters!T.length < 3)Connect to PropertyChange signal.
The signal "property-change" is emitted when an object's property value changes. arg1 contains an #AtkPropertyValues with the name and the new value of the property whose value has changed. Note that, as with GObject notify, getting this signal does not guarantee that the value of the property has actually changed; it may also be emitted when the setter of the property is called to reinstate the previous value.
Toolkit implementor note: ATK implementors should use [gobject.object.ObjectWrap.notify] to emit property-changed notifications. #AtkObject::property-changed is needed by the implementation of [atk.global.addGlobalEventListener] because GObject notify doesn't support emission hooks.
Parameters
detail | Signal detail or null (default) |
callback | signal callback delegate or function to connect void callback(atk.property_values.PropertyValues arg1, atk.object.ObjectWrap objectWrap) arg1 an #AtkPropertyValues containing the new value of the property which changed. (optional) objectWrap the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID