aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-07-09 03:46:13 +0200
committerTectu <joel@unormal.org>2012-07-09 03:46:13 +0200
commit1e0983019dc0165b7325908704098742a0fb4b7a (patch)
tree1809bc6b9bfab4651c9927ccda886f5a1677b488
parente0ee5c258f95d195a9011ea563997d7e7ab01c27 (diff)
downloaduGFX-1e0983019dc0165b7325908704098742a0fb4b7a.tar.gz
uGFX-1e0983019dc0165b7325908704098742a0fb4b7a.tar.bz2
uGFX-1e0983019dc0165b7325908704098742a0fb4b7a.zip
guiDrawKeymatrix() dummy
-rw-r--r--gui.c29
-rw-r--r--gui.h2
2 files changed, 31 insertions, 0 deletions
diff --git a/gui.c b/gui.c
index 5f351000..bf1654d8 100644
--- a/gui.c
+++ b/gui.c
@@ -238,3 +238,32 @@ uint8_t guiDrawWheel(uint16_t x0, uint16_t y0, uint16_t radius1, uint16_t radius
return 1;
}
+uint8_t guiDrawKeymatrix(uint16_t x0, uint16_t y0, uint16_t buttonSize, uint16_t space, uint16_t shadow, uint16_t buttonColor, uint16_t fontColor, font_t font, char *label, uint8_t *active, uint8_t *value) {
+ struct guiNode_t *newNode;
+
+ newNode = chHeapAlloc(NULL, sizeof(struct guiNode_t));
+ if(newNode == NULL)
+ return 0;
+
+ newNode->type = keymatrix;
+ newNode->label = label;
+ newNode->x0 = x0;
+ newNode->y0 = y0;
+ newNode->shadow = shadow;
+ newNode->active = active;
+ newNode->state = value;
+
+ if(addElement(newNode) != 1)
+ return 0;
+
+ (void)buttonSize;
+ (void)space;
+ (void)buttonColor;
+ (void)fontColor;
+ // lcdDrawFunctions
+
+ chHeapFree(newNode);
+
+ return 1;
+}
+
diff --git a/gui.h b/gui.h
index c0a006ec..1f616456 100644
--- a/gui.h
+++ b/gui.h
@@ -79,6 +79,8 @@ uint8_t guiDrawSlider(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_
uint8_t guiDrawWheel(uint16_t x0, uint16_t y0, uint16_t radius1, uint16_t radius2, uint16_t bkColor, uint16_t valueColor, char *label, uint8_t *active, uint8_t *value);
+uint8_t guiDrawKeymatrix(uint16_t x0, uint16_t y0, uint16_t buttonSize, uint16_t space, uint16_t shadow, uint16_t buttonColor, uint16_t fontColor, font_t font, char *label, uint8_t *active, uint8_t *value);
+
#ifdef __cplusplus
}
#endif