summaryrefslogtreecommitdiff
path: root/src/interface/DropDown.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 14:56:57 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 14:56:57 (GMT)
commitc261030cef6f63110fecf00aa2d2a22bbb953690 (patch)
treefd5669cef51195df75fca7d90b834af66fe4a9de /src/interface/DropDown.h
parentc3c31b20b07d1971091cf225311a86c51b64e2ca (diff)
downloadpowder-c261030cef6f63110fecf00aa2d2a22bbb953690.zip
powder-c261030cef6f63110fecf00aa2d2a22bbb953690.tar.gz
Started on dropdown control
Diffstat (limited to 'src/interface/DropDown.h')
-rw-r--r--src/interface/DropDown.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/interface/DropDown.h b/src/interface/DropDown.h
new file mode 100644
index 0000000..619ec5a
--- /dev/null
+++ b/src/interface/DropDown.h
@@ -0,0 +1,29 @@
+/*
+ * DropDown.h
+ *
+ * Created on: Apr 16, 2012
+ * Author: Simon
+ */
+
+#ifndef DROPDOWN_H_
+#define DROPDOWN_H_
+
+#include "Component.h"
+#include "Colour.h"
+
+namespace ui {
+
+class DropDown: public ui::Component {
+ Colour background, activeBackground;
+ Colour border, activeBorder;
+ Colour text, activeText;
+ bool isMouseInside;
+public:
+ DropDown(Point position, Point size);
+ virtual void Draw(const Point& screenPos);
+ virtual void OnMouseClick(int x, int y, unsigned int button);
+ virtual ~DropDown();
+};
+
+} /* namespace ui */
+#endif /* DROPDOWN_H_ */