]> Shamusworld >> Repos - architektonas/blob - src/text.h
Converted codebase from Qt4 to Qt5.
[architektonas] / src / text.h
1 #ifndef __TEXT_H__
2 #define __TEXT_H__
3
4 #include "object.h"
5 #include <QtWidgets>
6
7 class Text: public Object
8 {
9         public:
10                 Text(Vector, QString, Object * p = 0);
11                 ~Text();
12
13                 virtual void Draw(Painter *);
14                 virtual Vector Center(void);
15                 virtual bool Collided(Vector);
16                 virtual bool PointerMoved(Vector);
17                 virtual void PointerReleased(void);
18                 virtual bool HitTest(Point);
19                 virtual void Enumerate(FILE *);
20 //              virtual Object * Copy(void);
21                 virtual Vector GetPointAtParameter(double parameter);
22
23         protected:
24                 Vector oldPoint;                                        // Used for dragging
25
26         private:
27                 bool dragging;
28                 bool draggingHandle1;
29                 bool draggingHandle2;
30                 bool objectWasDragged;
31 };
32
33 #endif  // __TEXT_H__