summaryrefslogtreecommitdiff
path: root/fw/fe310/phone/app/app.h
blob: 1ba2dcaceb563a8f03757390a5c5263334555010 (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>

#include "log.h"

#define APP_SCREEN_W            480
#define APP_SCREEN_H            854
#define APP_STATUS_H            60

#define APP_FONT_HANDLE         31

#define APP_SPEC_SIZE(spec)     (sizeof(spec) / sizeof(EVEFormSpec))
#define APP_SPACERW(__w__,__h__) { \
    .widget.type = EVE_WIDGET_TYPE_SPACER,  \
    .widget.flags = EVE_WIDGET_FLAG_SKIP,   \
    .widget.g.w = (__w__),  \
    .widget.g.h = (__h__),  \
}


EVEWindowRoot *app_root(void);
EVEViewStack *app_stack(void);
EVEFont *app_font(void);

void app_refresh(void);
EVEView *app_search_view(char *name);
eve_view_constructor_t app_current_view(void);
void app_init(eve_view_constructor_t home_page, int b);