summaryrefslogtreecommitdiff
path: root/fw/fe310/phone/app/app.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/phone/app/app.h')
-rw-r--r--fw/fe310/phone/app/app.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/fw/fe310/phone/app/app.h b/fw/fe310/phone/app/app.h
new file mode 100644
index 0000000..1ba2dca
--- /dev/null
+++ b/fw/fe310/phone/app/app.h
@@ -0,0 +1,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);