]> Shamusworld >> Repos - architektonas/blob - src/base/rs_coordinateevent.h.old
Changed RS_Graphic to Drawing; this is less confusing as a drawing is
[architektonas] / src / base / rs_coordinateevent.h.old
1 #ifndef RS_COORDINATEEVENT_H
2 #define RS_COORDINATEEVENT_H
3
4 /**
5  * Coordinate Events.
6  */
7 class RS_CoordinateEvent
8 {
9         public:
10                 /**
11                  * @param pos coordinate
12                  * @param abs true: absolute coordinate, false: relative coordinate
13                  */
14                 RS_CoordinateEvent(const Vector & pos)
15                 {
16                         this->pos = pos;
17                 }
18
19                 /**
20                  * @return the position of the event in real graphic measures.
21                  */
22                 Vector getCoordinate()
23                 {
24                         return pos;
25                 }
26
27         protected:
28                 Vector pos;
29 };
30
31 #endif