Public Methods |
| | GLUTEventAdapter () |
| virtual | ~GLUTEventAdapter () |
| virtual EventType | getEventType () const |
| | Get the EventType of the GUI event.
|
| virtual int | getKey () const |
| | key pressed, return -1 if inappropriate for this event.
|
| virtual int | getButton () const |
| | button pressed/released, return -1 if inappropriate for this event.
|
| virtual int | getXmin () const |
| | window minimum x.
|
| virtual int | getXmax () const |
| | window maximum x.
|
| virtual int | getYmin () const |
| | window minimum y.
|
| virtual int | getYmax () const |
| | window maximum y.
|
| virtual int | getX () const |
| | current mouse x position.
|
| virtual int | getY () const |
| | current mouse y position.
|
| virtual unsigned int | getButtonMask () const |
| | current mouse button state
|
| virtual double | time () const |
| | time in seconds of event.
|
| void | adaptResize (double t, int Xmin, int Ymin, int Xmax, int Ymax) |
| | method for adapting resize events.
|
| void | adaptMouseMotion (double t, int x, int y) |
| | method for adapting mouse motion events whilst mouse buttons are pressed.
|
| void | adaptMousePassiveMotion (double t, int x, int y) |
| | method for adapting mouse motion events whilst no mouse button are pressed.
|
| void | adaptMouse (double t, int button, int state, int x, int y) |
| | method for adapting mouse button pressed/released events.
|
| void | adaptKeyboard (double t, unsigned char key, int x, int y) |
| | method for adapting keyboard events.
|
| void | adaptFrame (double t) |
| | method for adapting frame events, i.e.
|
| void | copyStaticVariables () |
Static Public Methods |
| void | setWindowSize (int Xmin, int Ymin, int Xmax, int Ymax) |
| | static method for setting window dimensions.
|
| void | setButtonMask (unsigned int buttonMask) |
| | static method for setting button state.
|
Protected Attributes |
| EventType | _eventType |
| int | _key |
| int | _button |
| int | _Xmin |
| int | _Xmax |
| int | _Ymin |
| int | _Ymax |
| int | _mx |
| int | _my |
| unsigned int | _buttonMask |
| double | _time |
Static Protected Attributes |
| unsigned int | _s_accumulatedButtonMask |
| int | _s_button |
| int | _s_Xmin |
| int | _s_Xmax |
| int | _s_Ymin |
| int | _s_Ymax |
| int | _s_mx |
| int | _s_my |