WCMotionEvent class. It adds
information describing key that has been pressed or released, and
the state of that key.
Example
Motivation
A compact way of passing passing position event information around
the WorldCanvas-oriented display classes was needed, with a
functional but tight and efficient interface.
Thrown Exceptions
To Do
Member Description
WCPositionEvent(WorldCanvas * wc, const Display::KeySym &key, const Bool &keyState, const uInt &modifiers, const Int &pixX, const Int &pixY, const Double &linX, const Double &linY, const Vector<Double> &world)
Constructor taking a pointer to the WorldCanvas for which the
event is valid, the key which is pressed and its state
(ie. pressed or released), the state of the keyboard and pointer
modifiers, and the pixel, linear and world coordinates of the
event.
Destructor.
virtual Display::KeySym key() const
Which key was pressed or released?
virtual Bool keystate() const
What state is the key in: True for pressed,
False for released.
(Required) default constructor.
(Required) copy constructor.
WCPositionEvent &operator=(const WCPositionEvent &other)
(Required) copy assignment.