From 9242a80a84fa5c96dbadec9594177875aeeec1ac Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 10 Jul 2012 18:37:21 +0000 Subject: only added MyDetails and Skins. not adopted yet git-svn-id: http://svn.miranda-ng.org/main/trunk@892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Skins/SkinLib/FieldState.rec | 89 ++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 plugins/Skins/SkinLib/FieldState.rec (limited to 'plugins/Skins/SkinLib/FieldState.rec') diff --git a/plugins/Skins/SkinLib/FieldState.rec b/plugins/Skins/SkinLib/FieldState.rec new file mode 100644 index 0000000000..7b9ffd890d --- /dev/null +++ b/plugins/Skins/SkinLib/FieldState.rec @@ -0,0 +1,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; +}; -- cgit v1.2.3