diff options
author | Tectu <joel@unormal.org> | 2012-07-09 20:45:02 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-07-09 20:45:02 +0200 |
commit | 4df715dd4600ddd05afe579ff742fbb331710cbc (patch) | |
tree | 12af8da333acab48f1ec8c634bbe926a600c354e /gui.h | |
parent | 894770e5961c2e356313f9e70a8ea63b763bf9c5 (diff) | |
download | uGFX-4df715dd4600ddd05afe579ff742fbb331710cbc.tar.gz uGFX-4df715dd4600ddd05afe579ff742fbb331710cbc.tar.bz2 uGFX-4df715dd4600ddd05afe579ff742fbb331710cbc.zip |
added guiDrawSlider()
Diffstat (limited to 'gui.h')
-rw-r--r-- | gui.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |