blob: 1885515de22650a5220def85e90aec84808c825b (
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
28
|
#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;
EVEScreen *app_screen(void);
void app_root_init(eve_view_constructor_t home_page);
EVEForm *app_form_create(EVEWindow *window, EVEViewStack *stack, APPWidgetSpec spec[], uint16_t spec_size, eve_page_destructor_t destructor);
void app_form_destroy(EVEForm *form);
|