PCMotionEvent 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 PixelCanvas-oriented display classes was needed, with a
functional but tight and efficient interface.
Thrown Exceptions
To Do
Member Description
PCPositionEvent(PixelCanvas *pc, const Display::KeySym &key, const Bool &keystate, const Int &x, const Int &y, const uInt &modifiers)
Constructor taking a pointer to the PixelCanvas for which the
event is valid, the symbol of the key, the state of the key,
the position of the pointer, and the input "modifiers".
User Constructor
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.
PCPositionEvent &operator=(const PCPositionEvent &other)
(Required) copy assignment.