]> Shamusworld >> Repos - architektonas/blob - src/drawcircleaction.h
Added Architektonas drawing file loading/saving infrastructure.
[architektonas] / src / drawcircleaction.h
1 #ifndef __DRAWCIRCLEACTION_H__
2 #define __DRAWCIRCLEACTION_H__
3
4 #include "action.h"
5
6 class Circle;
7
8 class DrawCircleAction: public Action
9 {
10         public:
11                 DrawCircleAction();
12                 ~DrawCircleAction();
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                 Circle * circle;
22                 Vector p1, p2;
23 };
24
25 #endif  // __DRAWCIRCLEACTION_H__