GLWindow.connectScrollEvent
gulong connectScrollEvent(T)(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] == double)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == double)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] == double)))
&& (Parameters!T.length < 5 || (ParameterStorageClassTuple!T[4] == ParameterStorageClass.none && is(Parameters!T[4] : gstgl.glwindow.GLWindow)))
&& Parameters!T.length < 6)Connect to ScrollEvent signal.
Will be emitted when a mouse scroll event is received by the GstGLwindow.
Parameters
callback | signal callback delegate or function to connect void callback(double x, double y, double deltaX, double deltaY, gstgl.glwindow.GLWindow gLWindow) x the x coordinate of the mouse event (optional) y the y coordinate of the mouse event (optional) deltaX the x offset of the scroll event (optional) deltaY the y offset of the scroll event (optional) gLWindow 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