aboutsummaryrefslogtreecommitdiff
path: root/src/colorpicker.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-12 20:48:30 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-12 20:48:30 +0200
commit7756a11530d9338954922c1df8e57c66a89fbdea (patch)
tree1fc4f9f070de5b1882f5953713f27e02b66a81e5 /src/colorpicker.h
downloadascedit-7756a11530d9338954922c1df8e57c66a89fbdea.tar.gz
Initial commit
Diffstat (limited to 'src/colorpicker.h')
-rw-r--r--src/colorpicker.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/colorpicker.h b/src/colorpicker.h
new file mode 100644
index 0000000..d4619d1
--- /dev/null
+++ b/src/colorpicker.h
@@ -0,0 +1,23 @@
+#include <cObject.h>
+#include <cObjectHandler.h>
+#include <cRender.h>
+#include <cInput.h>
+
+#include <stdint.h>
+
+class colorpicker : public cObject
+{
+
+public:
+ colorpicker();
+ ~colorpicker();
+
+ void onClick(sPos _pos, unsigned int _button);
+
+ uint16_t getColor();
+
+ void update();
+private:
+ uint8_t currentFG;
+ uint8_t currentBG;
+};