From 4df715dd4600ddd05afe579ff742fbb331710cbc Mon Sep 17 00:00:00 2001 From: Tectu Date: Mon, 9 Jul 2012 20:45:02 +0200 Subject: added guiDrawSlider() --- gui.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gui.h') diff --git a/gui.h b/gui.h index 49b8241f..e1606e45 100644 --- a/gui.h +++ b/gui.h @@ -20,6 +20,7 @@ struct guiNode_t { uint16_t bkColor; uint16_t valueColor; uint8_t orientation; + uint8_t mode; uint8_t *active; uint8_t *state; char *label; @@ -33,6 +34,7 @@ extern "C" { enum {button, slider, wheel, keymatrix}; enum {horizontal, vertical}; enum {inactive, active}; +enum {modePassive, modeActive}; /* * Description: creates the GUI thread @@ -77,7 +79,7 @@ uint8_t guiDeleteElement(char *label); */ uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char *str, font_t font, uint16_t fontColor, uint16_t buttonColor, uint16_t shadow, char *label, uint8_t *active, uint8_t *state); -uint8_t guiDrawSlider(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t orientation, uint16_t frameColor, uint16_t bkColor, uint16_t valueColor, char *label, uint8_t *active, uint8_t *value); +uint8_t guiDrawSlider(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t orientation, uint8_t mode, uint16_t frameColor, uint16_t bkColor, uint16_t valueColor, char *label, uint8_t *active, uint8_t *value); 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); -- cgit v1.2.3