Interface MotionCallback

  • 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 interface MotionCallback
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onMotion​(Component target, int x, int y)
      Set the motion callback for the current window (mouse movement within window while one or more mouse buttons are pressed) void glutMotionFunc (void (*func)(int x, int y))
    • Method Detail

      • onMotion

        void onMotion​(Component target,
                      int x,
                      int y)
        Set the motion callback for the current window (mouse movement within window while one or more mouse buttons are pressed) void glutMotionFunc (void (*func)(int x, int y))
        Parameters:
        target - Rendering target component
        x - Window relative coordinate x of mouse when event has occurred
        y - Window relative coordinate y of mouse when event has occurred