summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/app/root.h
blob: 09284e22781e33172577a561a1a8af854af55563 (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
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);