summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/TextFieldState.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Skins/SkinLib/TextFieldState.h')
-rw-r--r--plugins/Skins/SkinLib/TextFieldState.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/plugins/Skins/SkinLib/TextFieldState.h b/plugins/Skins/SkinLib/TextFieldState.h
new file mode 100644
index 0000000000..9779cfa569
--- /dev/null
+++ b/plugins/Skins/SkinLib/TextFieldState.h
@@ -0,0 +1,38 @@
+#ifndef __TEXT_FIELD_STATE_H__
+# define __TEXT_FIELD_STATE_H__
+
+#include "TextField.h"
+#include "FieldState.h"
+#include "FontState.h"
+
+
+class TextFieldState : public FieldState
+{
+public:
+ virtual ~TextFieldState();
+
+ virtual TextField * getField() const;
+
+ virtual Size getPreferedSize() const;
+
+ virtual const TCHAR * getText() const;
+ virtual void setText(const TCHAR *text);
+
+ virtual FontState * getFont();
+ virtual const FontState * getFont() const;
+
+ virtual bool isEmpty() const;
+
+private:
+ TextFieldState(DialogState *dialog, TextField *field);
+
+ FontState font;
+ BOOL textSet;
+ std::tstring text;
+
+
+ friend class TextField;
+};
+
+
+#endif // __TEXT_FIELD_STATE_H__ \ No newline at end of file