diff options
author | Tectu <joel@unormal.org> | 2012-07-09 03:46:13 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-07-09 03:46:13 +0200 |
commit | 1e0983019dc0165b7325908704098742a0fb4b7a (patch) | |
tree | 1809bc6b9bfab4651c9927ccda886f5a1677b488 | |
parent | e0ee5c258f95d195a9011ea563997d7e7ab01c27 (diff) | |
download | uGFX-1e0983019dc0165b7325908704098742a0fb4b7a.tar.gz uGFX-1e0983019dc0165b7325908704098742a0fb4b7a.tar.bz2 uGFX-1e0983019dc0165b7325908704098742a0fb4b7a.zip |
guiDrawKeymatrix() dummy
-rw-r--r-- | gui.c | 29 | ||||
-rw-r--r-- | gui.h | 2 |
2 files changed, 31 insertions, 0 deletions
@@ -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; +} + @@ -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 |