ObjectAtk.connectPropertyChange

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.ObjectG.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.

class ObjectAtk
ulong
connectPropertyChange
(
T
)
(
string detail = null
,,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : atk.object.ObjectAtk)
)
)
&&
Parameters!T.length < 3
)

Parameters

detail string

Signal detail or null (default)

callback T

signal callback delegate or function to connect

void callback(atk.property_values.PropertyValues arg1, atk.object.ObjectAtk objectAtk)

arg1 an #AtkPropertyValues containing the new value of the property which changed. (optional)

objectAtk the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID