diff options
Diffstat (limited to 'fw/fe310/eos/app/root.h')
-rw-r--r-- | fw/fe310/eos/app/root.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/fw/fe310/eos/app/root.h b/fw/fe310/eos/app/root.h new file mode 100644 index 0000000..09284e2 --- /dev/null +++ b/fw/fe310/eos/app/root.h @@ -0,0 +1,27 @@ +#include <stdint.h> + +#define APP_SCREEN_W 480 +#define APP_SCREEN_H 800 +#define APP_STATUS_H 60 + +#define APP_FONT_HANDLE 31 + +typedef struct APPLabelSpec { + EVERect g; + EVEFont *font; + char *title; +} APPLabelSpec; + +typedef struct APPWidgetSpec { + APPLabelSpec label; + struct { + EVERect g; + EVEWidgetSpec spec; + uint8_t type; + } widget; +} APPWidgetSpec; + + +void app_root_init(void); +EVEForm *app_form_create(EVEWindow *window, EVEPageStack *stack, APPWidgetSpec spec[], uint16_t spec_size, eve_page_destructor_t destructor); +void app_form_destroy(EVEForm *form);
\ No newline at end of file |