Package ch.bailu.gtk.gtk
Interface EventControllerScroll.OnDecelerate
- Enclosing class:
- EventControllerScroll
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDecelerate
(double vel_x, double vel_y) Emitted after scroll is finished if the
%GTK_EVENT_CONTROLLER_SCROLL_KINETIC flag is set.
-
Method Details
-
onDecelerate
void onDecelerate(double vel_x, double vel_y) Emitted after scroll is finished if the
%GTK_EVENT_CONTROLLER_SCROLL_KINETIC flag is set.
@vel_x and @vel_y express the initial velocity that was
imprinted by the scroll events. @vel_x and @vel_y are expressed in
pixels/ms.- Parameters:
vel_x
- X velocityvel_y
- Y velocity
-