Public Types | |
enum | MouseEventTypes { MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_CLICKED, MOUSE_EXITED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_MOTION } |
enum | MouseButtons { MOUSE_BUTTON1, MOUSE_BUTTON2, MOUSE_BUTTON3, MOUSE_SCROLL_UP, MOUSE_SCROLL_DOWN } |
Public Member Functions | |
MouseEvent (Component *sourceComponent, int id, int x, int y, int mouseButton) | |
int | getButton () const |
int | getX () const |
int | getY () const |
|
|
|
Creates a new MouseEvent with the specified Component as source. |
|
Returns the button that generated this event. |
|
Returns the x location of the MouseEvent. |
|
Returns the y location of the MouseEvent. |