|
Public Member Functions |
| | EventAdapter () |
| virtual | ~EventAdapter () |
| virtual EventType | getEventType () const |
| | Get the EventType of the GUI event.
|
| void | setKey (int key) |
| 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 float | getXmin () const |
| | window minimum x.
|
| virtual float | getXmax () const |
| | window maximum x.
|
| virtual float | getYmin () const |
| | window minimum y.
|
| virtual float | getYmax () const |
| | window maximum y.
|
| void | setX (float x) |
| virtual float | getX () const |
| | current mouse x position.
|
| void | setY (float y) |
| virtual float | getY () const |
| | current mouse y position.
|
| void | setButtonMak (unsigned int mask) |
| virtual unsigned int | getButtonMask () const |
| | current mouse button state
|
| virtual double | time () const |
| | time in seconds of event.
|
| virtual unsigned int | getModKeyMask () const |
| | current modkey state
|
| void | adaptResize (double t, float Xmin, float Ymin, float Xmax, float Ymax) |
| | method for adapting resize events.
|
| void | adaptMouseScroll (double t, Producer::KeyboardMouseCallback::ScrollingMotion sm) |
| | method for adapting mouse scroll wheel events.
|
| void | adaptMouseMotion (double t, float x, float y) |
| | method for adapting mouse motion events whilst mouse buttons are pressed.
|
| void | adaptButtonPress (double t, float x, float y, unsigned int button) |
| void | adaptButtonRelease (double t, float x, float y, unsigned int button) |
| void | adaptKeyPress (double t, Producer::KeySymbol key) |
| | method for adapting keyboard events.
|
| void | adaptKeyRelease (double t, Producer::KeySymbol key) |
| void | adaptFrame (double t) |
| | method for adapting frame events, i.e.
|
| void | copyStaticVariables () |
Static Public Member Functions |
| void | setWindowSize (float Xmin, float Ymin, float Xmax, float Ymax) |
| | static method for setting window dimensions.
|
| void | setButtonMask (unsigned int buttonMask) |
| | static method for setting button state.
|
Public Attributes |
| EventType | _eventType |
| int | _key |
| int | _button |
| float | _Xmin |
| float | _Xmax |
| float | _Ymin |
| float | _Ymax |
| float | _mx |
| float | _my |
| unsigned int | _buttonMask |
| unsigned int | _modKeyMask |
| double | _time |
Static Public Attributes |
| unsigned int | _s_accumulatedButtonMask |
| int | _s_button |
| float | _s_Xmin |
| float | _s_Xmax |
| float | _s_Ymin |
| float | _s_Ymax |
| float | _s_mx |
| float | _s_my |
| int | _s_modKeyMask |