summaryrefslogtreecommitdiff
path: root/Plugins/skins/SkinLib/FieldState.rec
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/skins/SkinLib/FieldState.rec')
-rw-r--r--Plugins/skins/SkinLib/FieldState.rec30
1 files changed, 27 insertions, 3 deletions
diff --git a/Plugins/skins/SkinLib/FieldState.rec b/Plugins/skins/SkinLib/FieldState.rec
index 992c4d6..a8bf2a9 100644
--- a/Plugins/skins/SkinLib/FieldState.rec
+++ b/Plugins/skins/SkinLib/FieldState.rec
@@ -8,6 +8,7 @@ struct DialogState
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
@@ -23,17 +24,40 @@ struct FieldState
Boolean visible;
const Boolean enabled;
Char toolTip[128];
+ BorderState borders [setter: if (!value.IsEmpty() && value->IsInt32())\n\ttmp->getBorders()->setAll(value->Int32Value()); ];
};
-struct ControlFieldState
+struct ControlFieldState : FieldState
{
Char text[1024];
+ FontState font;
};
-struct TextFieldState
+struct LabelFieldState : ControlFieldState
+{
+};
+
+struct ButtonFieldState : ControlFieldState
+{
+};
+
+struct EditFieldState : ControlFieldState
+{
+};
+
+struct IconFieldState : FieldState
+{
+};
+
+struct ImageFieldState : FieldState
+{
+};
+
+struct TextFieldState : FieldState
{
Char text[1024];
Int32 hAlign | LEFT | CENTER | RIGHT;
+ FontState font;
};
struct FontState
@@ -61,4 +85,4 @@ struct SkinOption
Int32 min;
Int32 max;
Int32 type | CHECKBOX | NUMBER | TEXT;
-}; \ No newline at end of file
+};