Package jgl.wt.awt.listener.callbacks
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonMouse(Component target, int button, int state, int x, int y)Sets mouse callback for the current window.
-
-
-
Method Detail
-
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 componentbutton- Mouse button identifier (GLUT_LEFT_BUTTON, etc.)state- GLUT_UP or GLUT_DOWN indicating mouse button state causex- Window relative coordinate x of mouse when event has occurredy- Window relative coordinate y of mouse when event has occurred
-
-