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.

@FunctionalInterface public static interface EventControllerScroll.OnDecelerate
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 velocity
      vel_y - Y velocity