PixelCanvasEvent class. It adds
information describing the current position of the mouse or
pointing device, and the state of the keyboard modifiers (including
the mouse buttons).
Example
Motivation
A compact way of passing motion event information around the
PixelCanvas-oriented display classes was needed, with a functional
but tight and efficient interface.
Thrown Exceptions
To Do
Member Description
PCMotionEvent(PixelCanvas *pc, const Int &x, const Int &y, const uInt &modifiers)
Constructor taking a pointer to the PixelCanvas for which the
event is valid, the position of the event, and the keyboard and
pointer modifiers.
Destructor.
virtual Int x() const
virtual Int y() const
The x and y pixel position of the pointer when the event occured.
virtual uInt modifiers() const
Return the state of the "modifiers": this is made up of mask
bits referring to various keys on the keyboard (eg. Control,
Shift, etc.) and the mouse buttons.
(Required) default constructor.
PCMotionEvent(const PCMotionEvent &other)
(Required) copy constructor.
PCMotionEvent &operator=(const PCMotionEvent &other)
(Required) copy assignment.