summaryrefslogtreecommitdiff
path: root/Plugins/skins/SkinLib/IconField.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/skins/SkinLib/IconField.cpp')
-rw-r--r--Plugins/skins/SkinLib/IconField.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/Plugins/skins/SkinLib/IconField.cpp b/Plugins/skins/SkinLib/IconField.cpp
new file mode 100644
index 0000000..2a6054c
--- /dev/null
+++ b/Plugins/skins/SkinLib/IconField.cpp
@@ -0,0 +1,37 @@
+#include "globals.h"
+#include "IconField.h"
+#include "IconFieldState.h"
+
+
+IconField::IconField(const char *name) : Field(name), hIcon(NULL)
+{
+
+}
+
+IconField::~IconField()
+{
+}
+
+FieldType IconField::getType() const
+{
+ return SIMPLE_ICON;
+}
+
+HICON IconField::getIcon() const
+{
+ return hIcon;
+}
+
+void IconField::setIcon(HICON hIcon)
+{
+ if (this->hIcon == hIcon)
+ return;
+
+ this->hIcon = hIcon;
+ fireOnChange();
+}
+
+FieldState * IconField::createState()
+{
+ return new IconFieldState(this);
+} \ No newline at end of file