class GMouseEvent| Constructor | |
| GMouseEvent() GMouseEvent(e) GMouseEvent(type, x, y) | Creates a GMouseEvent using the specified parameters or those taken from the more general event e. |
| Methods | |
| getEventType() | Returns the enumerated type constant corresponding to the specific type of mouse event. |
| getX() | Returns the x coordinate at which the event occurred relative to the window origin at the upper left corner of the window. |
| getY() | Returns the y coordinate at which the event occurred relative to the window origin at the upper left corner of the window. |
| toString() | Converts the event to a human-readable representation of the event. |
GMouseEvent(); GMouseEvent(GEvent e); GMouseEvent(MouseEventType type, double x, double y);
GMouseEvent using the specified parameters or
those taken from the more general event e.
Usage:
GMouseEvent mouseEvent; GMouseEvent mouseEvent(e); GMouseEvent mouseEvent(type, x, y);
MouseEventType getEventType();
Usage:
MouseEventType type = e.getEventType();
double getX();
Usage:
double x = getX();
double getY();
Usage:
double y = getY();
string toString();
Usage:
string str = e.toString();