- Enclosing class:
ScreenMouseEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
boolean
Checks if the mouse should be allowed to drag in a screen by moving the cursor while a mouse button is held
down.
-
Method Details
-
allowMouseDrag
boolean allowMouseDrag(Screen screen,
Click context,
double horizontalAmount,
double verticalAmount)
Checks if the mouse should be allowed to drag in a screen by moving the cursor while a mouse button is held
down.
- Parameters:
screen - the screen
context - the context of the mouse drag, containing the mouse position and button
horizontalAmount - the horizontal drag amount
verticalAmount - the vertical drag amount
- Returns:
- whether the mouse should be allowed to drag
- See Also:
-