diff options
author | Tectu <joel@unormal.org> | 2012-06-26 21:48:12 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-26 21:48:12 +0200 |
commit | 191dbc088a36bca40d740f3e0e1ac17373be2b4e (patch) | |
tree | e0f21fc25c57cf3958223243ae7ec6bf9b3c1054 | |
parent | a1cc224472060b08e18a6f17e94852d8a461ccf9 (diff) | |
download | uGFX-191dbc088a36bca40d740f3e0e1ac17373be2b4e.tar.gz uGFX-191dbc088a36bca40d740f3e0e1ac17373be2b4e.tar.bz2 uGFX-191dbc088a36bca40d740f3e0e1ac17373be2b4e.zip |
added guiDrawWheel() dummy
-rw-r--r-- | gui.c | 25 | ||||
-rw-r--r-- | gui.h | 2 |
2 files changed, 27 insertions, 0 deletions
@@ -179,3 +179,28 @@ uint8_t guiDrawSlider(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_ return 1; } +uint8_t guiDrawWheel(uint16_t x0, uint16_t y0, uint16_t radius1, uint16_t radius2, uint16_t bkColor, uint16_t valueColor, uint8_t *active, uint8_t *value) { + struct guiNode_t *newNode; + + newNode = chHeapAlloc(NULL, sizeof(struct guiNode_t)); + if(newNode == NULL) + return 0; + + newNode->type = wheel; + newNode->x0 = x0; + newNode->y0 = y0; + newNode->r1 = radius1; + newNode->r2 = radius2; + newNode->active = active; + newNode->state = value; + + if(addNode(newNode) != 1) + return 0; + + // lcdDraw functions + + chHeapFree(newNode); + + return 1; +} + @@ -12,6 +12,8 @@ static struct guiNode_t { uint16_t y0; uint16_t x1; uint16_t y1; + uint16_t r1; + uint16_t r2; uint8_t orientation; uint8_t *active; uint8_t *state; |