Interface MouseCallback

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 MouseCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMouse(Component target, int button, int state, int x, int y)
    Sets mouse callback for the current window.
  • Method Details

    • onMouse

      void onMouse(Component target, int button, int state, int x, int y)
      Sets mouse callback for the current window. void glutMouseFunc (void (*func)(int button, int state, int x, int y))
      Parameters:
      target - Rendering target component
      button - Mouse button identifier (GLUT_LEFT_BUTTON, etc.)
      state - GLUT_UP or GLUT_DOWN indicating mouse button state cause
      x - Window relative coordinate x of mouse when event has occurred
      y - Window relative coordinate y of mouse when event has occurred