diff options
Diffstat (limited to 'gui.h')
-rw-r--r-- | gui.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -12,6 +12,7 @@ static struct guiNode_t { uint16_t y0; uint16_t x1; uint16_t y1; + uint8_t orientation; uint8_t *active; uint8_t *state; char *name; @@ -22,7 +23,7 @@ static struct guiNode_t { extern "C" { #endif -enum {button, slider, keymatrix}; +enum {button, slider, wheel, keymatrix}; enum {horizontal, vertical}; enum {inactive, active}; @@ -59,6 +60,8 @@ void guiPrintNode(BaseSequentialStream *chp); */ uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char *str, uint16_t fontColor, uint16_t buttonColor, 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, uint8_t *active, uint8_t *value); + #ifdef __cplusplus } #endif |