-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext.h
58 lines (39 loc) · 1013 Bytes
/
text.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef TEXT_H
#define TEXT_H
#include "field.h"
class Field;
class Text{
private:
QString text;
bool visible;
protected:
Field * parent; // ÒÁÂÏÞÅÅ ÐÏÌÅ
int X,Y; //ËÏÏÒÄÉÎÁÔÙ ÎÁ ÍÎÅÍÏÓÈÅÍÅ
int H,W; //×ÙÓÏÔÁ É ÛÉÒÉÎÁ ÎÁ ÍÎÅÍÏÓÈÅÍÅ
int linewidth; // ÔÏÌÝÉÎÁ ÌÉÎÉÉ
GLfloat R1,G1,B1;
GLfloat R2,G2,B2;
GLfloat R1S,G1S,B1S;
GLfloat R2S,G2S,B2S;
GLfloat R1L,G1L,B1L;
public:
Text(Field *work_field,int tmpX, int tmpY,QString text);
virtual ~Text();
bool isSel;
virtual void move(int x, int y);
virtual int x() const;
virtual int y() const;
virtual int width() const;
virtual int height() const;
virtual void setIsSelected(bool fl);
virtual bool getIsSelected();
void setVisible(bool t_visible);
bool isVisible();
QString getText() const;
void setText(QString t_text);
int getLineWigth() const;
void setLineWigth(int lw);
virtual void paint();
};
//template <typename T>
#endif // TEXT_H