summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/app/root.h
blob: 37f1448dd9bec98ea1692a6f7701aa17033657b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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(eve_page_constructor_t home_page);
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);