QCAD
Open Source 2D CAD
RCoordinateEvent.h
Go to the documentation of this file.
1 
20 #ifndef RCOORDINATEEVENT_H
21 #define RCOORDINATEEVENT_H
22 
23 #include "core_global.h"
24 
25 #include "RInputEvent.h"
26 #include "RVector.h"
27 
28 class RGraphicsView;
29 class RGraphicsScene;
30 
37 class QCADCORE_EXPORT RCoordinateEvent : public QEvent, public RInputEvent {
38 public:
42  RCoordinateEvent(const RVector& position,
44 
45  void setModifiers(Qt::KeyboardModifiers m) {
46  mods = m;
47  }
48  Qt::KeyboardModifiers getModifiers() const {
49  return mods;
50  }
51 
52 private:
53  Qt::KeyboardModifiers mods;
54 };
55 
58 
59 #endif
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
An input event for a graphics scene.
Definition: RInputEvent.h:41
Abstract base class for all graphics scenes.
Definition: RGraphicsScene.h:61
Qt::KeyboardModifiers mods
Definition: RCoordinateEvent.h:53
#define QCADCORE_EXPORT
Definition: core_global.h:10
void setModifiers(Qt::KeyboardModifiers m)
Definition: RCoordinateEvent.h:45
Qt::KeyboardModifiers getModifiers() const
Definition: RCoordinateEvent.h:48
Q_DECLARE_METATYPE(RMath *)
Coordinate Event.
Definition: RCoordinateEvent.h:37
Graphics view.
Definition: RGraphicsView.h:58