summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/FieldState.rec
blob: 7b9ffd890d8255f1f7f491d1ab59be47ec80d0e4 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
struct DialogState
{
	Int32 width;
	Int32 height;
	const Int32 x;
	const Int32 y;
	const Int32 left;
	const Int32 top;
	const Int32 right;
	const Int32 bottom;
	BorderState borders [setter: if (!value.IsEmpty() && value->IsInt32())\n\ttmp->getBorders()->setAll(value->Int32Value()); ];
};

struct FieldState
{
	Int32 x;
	Int32 y;
	Int32 width;
	Int32 height;
	Int32 left;
	Int32 top;
	Int32 right;
	Int32 bottom;
	Boolean visible;
	const Boolean enabled;
	Char toolTip[128];
	Int32 hAlign | HORIZONTAL_ALIGN_LEFT "LEFT" | HORIZONTAL_ALIGN_CENTER "CENTER" | HORIZONTAL_ALIGN_RIGHT "RIGHT";
	Int32 vAlign | VERTICAL_ALIGN_TOP "TOP" | VERTICAL_ALIGN_CENTER "CENTER" | VERTICAL_ALIGN_BOTTOM "BOTTOM";
	BorderState borders [setter: if (!value.IsEmpty() && value->IsInt32())\n\ttmp->getBorders()->setAll(value->Int32Value()); ];
};

struct ControlFieldState : FieldState
{
	Char text[1024];
	FontState font;
};

struct LabelFieldState : ControlFieldState
{
};

struct ButtonFieldState : ControlFieldState
{
};

struct EditFieldState : ControlFieldState
{
};

struct IconFieldState : FieldState
{
};

struct ImageFieldState : FieldState
{
};

struct TextFieldState : FieldState
{
	Char text[1024];
	FontState font;
};

struct FontState
{
	Char face[32];
	Int32 size;
	Boolean italic;
	Boolean bold;
	Boolean underline;
	Boolean strikeOut;
	Int32 color;
};

struct BorderState
{
	Int32 left;
	Int32 right;
	Int32 top;
	Int32 bottom;
};

struct SkinOption
{
	Char description[128];
	Int32 min;
	Int32 max;
	Int32 type | CHECKBOX | NUMBER | TEXT;
};