diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:16:20 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:16:20 +0200 |
commit | ec0caa569b356f186e87c13e50550ca1b807dde6 (patch) | |
tree | ab07671a8aed9c573fe20d2d100be0ab1c5e68a7 /fw/fe310/eos/eve/widget/togglew.h | |
parent | 7f8e473ac12191ca4449de96033e2acda07dc4c4 (diff) |
eve support when i2s is running
Diffstat (limited to 'fw/fe310/eos/eve/widget/togglew.h')
-rw-r--r-- | fw/fe310/eos/eve/widget/togglew.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fw/fe310/eos/eve/widget/togglew.h b/fw/fe310/eos/eve/widget/togglew.h index 26ff77c..aa5485d 100644 --- a/fw/fe310/eos/eve/widget/togglew.h +++ b/fw/fe310/eos/eve/widget/togglew.h @@ -1,5 +1,7 @@ #include <stdint.h> +#define EVE_TOGGLEW_MARGIN 50 + struct EVEWidgetSpec; typedef struct EVEToggleWidget { @@ -12,6 +14,7 @@ typedef struct EVEToggleWidget { typedef struct EVEToggleSpec { EVEFont *font; char *labels; + uint8_t state; } EVEToggleSpec; void eve_togglew_init(EVEToggleWidget *widget, EVERect *g, EVEPage *page, EVEFont *font, char *labels); @@ -19,3 +22,7 @@ void eve_togglew_init(EVEToggleWidget *widget, EVERect *g, EVEPage *page, EVEFon int eve_togglew_create(EVEWidget *_widget, struct EVEWidgetSpec *spec, EVEPage *page); uint8_t eve_togglew_draw(EVEWidget *_widget, uint8_t tag0); int eve_togglew_touch(EVEWidget *_widget, EVETouch *touch, uint16_t evt); + +void eve_togglew_set(EVEToggleWidget *widget); +void eve_togglew_clr(EVEToggleWidget *widget); +uint8_t eve_togglew_get(EVEToggleWidget *widget);
\ No newline at end of file |