aboutsummaryrefslogtreecommitdiffstats
path: root/gui.h
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-07 19:01:37 +0200
committerTectu <joel@unormal.org>2012-06-07 19:01:37 +0200
commit8c95db3a79e54d4df145b7b1c14627ab7b60f98b (patch)
tree9d0e8b7bcef9d4e95a0db33fcfced00771f378ad /gui.h
parentc7eddd1bf3fd4676ea402a00b5025795e40739fb (diff)
downloaduGFX-8c95db3a79e54d4df145b7b1c14627ab7b60f98b.tar.gz
uGFX-8c95db3a79e54d4df145b7b1c14627ab7b60f98b.tar.bz2
uGFX-8c95db3a79e54d4df145b7b1c14627ab7b60f98b.zip
implemented guiDrawButton()
Diffstat (limited to 'gui.h')
-rw-r--r--gui.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui.h b/gui.h
index 3a6835ca..045d0f2d 100644
--- a/gui.h
+++ b/gui.h
@@ -1,7 +1,15 @@
#ifndef GUI_H
#define GUI_H
-void guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, unsigned char *str, uint16_t fontColor, uint16_t buttonColor, uint8_t *state);
+struct buttonStruct_t {
+ uint16_t x0;
+ uint16_t y0;
+ uint16_t x1;
+ uint16_t y1;
+ uint8_t *state;
+};
+
+Thread *guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, unsigned char *str, uint16_t fontColor, uint16_t buttonColor, uint8_t *state);
#endif