public interface IMouseEventListener
Modifier and Type | Method and Description |
---|---|
void |
onMouseDown(BaseComponent component,
double mouseX,
double mouseY,
int button)
Called when the mouse clicks on the component
|
void |
onMouseDrag(BaseComponent component,
double mouseX,
double mouseY,
int button,
double xDragAmount,
double yDragAmount)
Called when the mouse drags an item
|
void |
onMouseUp(BaseComponent component,
double mouseX,
double mouseY,
int button)
Called when the mouse releases the component
|
void onMouseDown(BaseComponent component, double mouseX, double mouseY, int button)
component
- The component to be clickedmouseX
- X position of the mousemouseY
- Y position of the mousebutton
- Which button was clickedvoid onMouseUp(BaseComponent component, double mouseX, double mouseY, int button)
component
- The component to be clickedmouseX
- X position of the mousemouseY
- Y position of the mousebutton
- Which button was clickedvoid onMouseDrag(BaseComponent component, double mouseX, double mouseY, int button, double xDragAmount, double yDragAmount)
component
- The component to be clickedmouseX
- X position of the mousemouseY
- Y position of the mousebutton
- Which button was clicked