Interface EventControllerScroll.OnScroll

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.OnScroll
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onScroll(double dx, double dy)
    Signals that the widget should scroll by the
    amount specified by @dx and @dy.
  • Method Details

    • onScroll

      boolean onScroll(double dx, double dy)
      Signals that the widget should scroll by the
      amount specified by @dx and @dy.

      For the representation unit of the deltas, see
      [method@Gtk.EventControllerScroll.get_unit].
      Parameters:
      dx - X delta
      dy - Y delta
      Returns:
      %TRUE if the scroll event was handled, %FALSE otherwise.