-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpalette.h
More file actions
60 lines (51 loc) · 1.28 KB
/
Copy pathpalette.h
File metadata and controls
60 lines (51 loc) · 1.28 KB
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
59
60
#ifndef PALETTE_H
#define PALETTE_H
#include <string.h>
class Palette
{
public:
//边框宽度
int frameWidth;
//边框颜色
int rgb_Red,rgb_Green,rgb_Blue;
//位置
int xloc,yloc;
//边框大小
int width,height;
//填充颜色
int fillRed,fillGreen,fillBlue;
//文字说明
char comTxt[10] ;
//显示文字与矩形之间的距离
int internal;
public:
Palette();
~Palette();
const char* getComTxt() const ;
void setComTxt(char* comTxt);
int getFillBlue() const ;
void setFillBlue(int fillBlue) ;
int getFillGreen() const ;
void setFillGreen(int fillGreen) ;
int getFillRed() const ;
void setFillRed(int fillRed) ;
int getFrameWidth() const ;
void setFrameWidth(int frameWidth) ;
int getHeight() const ;
void setHeight(int height) ;
int getRgbBlue() const ;
void setRgbBlue(int rgbBlue) ;
int getRgbGreen() const ;
void setRgbGreen(int rgbGreen) ;
int getRgbRed() const ;
void setRgbRed(int rgbRed) ;
int getWidth() const ;
void setWidth(int width) ;
int getXloc() const;
void setXloc(int xloc) ;
int getYloc() const ;
void setYloc(int yloc) ;
int getInternal() const ;
void setInternal(int internal) ;
};
#endif // PALETTE_H