ObjectAtk.connectFocusEvent

Connect to FocusEvent signal.

The signal "focus-event" is emitted when an object gained or lost focus.

More...
class ObjectAtk
ulong
connectFocusEvent
(
T
)
(,
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] == bool)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : atk.object.ObjectAtk)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

void callback(bool arg1, atk.object.ObjectAtk objectAtk)

arg1 a boolean value which indicates whether the object gained or lost focus. (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

Detailed Description

Deprecated: Use the #AtkObject::state-change signal instead.