aboutsummaryrefslogtreecommitdiffstats
path: root/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui.h')
-rw-r--r--gui.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui.h b/gui.h
index 05e4c383..9d1842da 100644
--- a/gui.h
+++ b/gui.h
@@ -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