blob: 69624e7f9189754de31fe2306ba47702e1d28c90 (
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
29
|
#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_screen_init(eve_view_constructor_t home_page);
void app_screen_refresh(void);
EVEForm *app_form_create(EVEWindow *window, EVEViewStack *stack, APPWidgetSpec spec[], uint16_t spec_size, eve_form_action_t action, eve_form_destructor_t destructor);
void app_form_destroy(EVEForm *form);
|