EventControllerScroll.connectScroll

Connect to Scroll signal.

Signals that the widget should scroll by the amount specified by dx and dy.

For the representation unit of the deltas, see gtk.event_controller_scroll.EventControllerScroll.getUnit.

class EventControllerScroll
ulong
connectScroll
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == bool)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] == double)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == double)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(double dx, double dy, gtk.event_controller_scroll.EventControllerScroll eventControllerScroll)

dx X delta (optional)

dy Y delta (optional)

eventControllerScroll the instance the signal is connected to (optional)

Returns true if the scroll event was handled, false otherwise.

after Flag!"After"

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

Return Value

Type: ulong

Signal ID