]> Shamusworld >> Repos - architektonas/blob - src/drawlineaction.h
Added Architektonas drawing file loading/saving infrastructure.
[architektonas] / src / drawlineaction.h
1 #ifndef __DRAWLINEACTION_H__
2 #define __DRAWLINEACTION_H__
3
4 #include "action.h"
5
6 class Line;
7
8 class DrawLineAction: public Action
9 {
10         public:
11                 DrawLineAction();
12                 ~DrawLineAction();
13
14                 virtual void Draw(Painter *);
15                 virtual void MouseDown(Vector);
16                 virtual void MouseMoved(Vector);
17                 virtual void MouseReleased(void);
18
19         private:
20                 int state;
21                 Line * line;
22                 Vector p1, p2;
23 };
24
25 #endif  // __DRAWLINEACTION_H__