]> Shamusworld >> Repos - architektonas/blob - src/drawtextaction.h
Changed Actions to emit signal when needing a graphical update.
[architektonas] / src / drawtextaction.h
1 #ifndef __DRAWTEXTACTION_H__
2 #define __DRAWTEXTACTION_H__
3
4 #include "action.h"
5
6 class Text;
7
8 class DrawTextAction: public Action
9 {
10         public:
11                 DrawTextAction();
12                 ~DrawTextAction();
13
14                 virtual void Draw(Painter *);
15                 virtual void MouseDown(Vector);
16                 virtual void MouseMoved(Vector);
17                 virtual void MouseReleased(void);
18                 virtual void KeyDown(int);
19                 virtual void KeyReleased(int);
20
21         private:
22                 int state;
23                 Text * text;
24                 Vector p1;
25 };
26
27 #endif  // __DRAWTEXTACTION_H__
28