DocumentT.connectPageChanged

Connect to PageChanged signal.

The 'page-changed' signal is emitted when the current page of a document changes, e.g. pressing page up/down in a document viewer.

template DocumentT()
ulong
connectPageChanged
(
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] == int)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : atk.document.Document)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

void callback(int pageNumber, atk.document.Document document)

pageNumber the new page number. If this value is unknown or not applicable, -1 should be provided. (optional)

document 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