]> git.tdb.fi Git - r2c2.git/blob - source/engineer/guicomponent.h
Initial revision
[r2c2.git] / source / engineer / guicomponent.h
1 #ifndef GUICOMPONENT_H_
2 #define GUICOMPONENT_H_
3
4 class GuiComponent
5 {
6 public:
7         enum HAlign
8         {
9                 LEFT,
10                 CENTER,
11                 RIGHT
12         };
13
14         enum VAlign
15         {
16                 TOP,
17                 MIDDLE,
18                 BOTTOM
19         };
20
21         struct Part
22         {
23                 enum Type
24                 {
25                         IMAGE,
26                         LABEL,
27                         TEXT
28                 };
29
30                 std::string variation;
31                 std::string state;
32                 Type type;
33                 std::string data;
34                 HAlign align_x;
35                 VAlign align_y;
36                 int offset_x;
37                 int offset_y;
38         };
39         typedef std::list<Part> PartSeq;
40
41 private:
42 };
43
44 #endif