From fc98d3809e0db36d634f290417b9152f87f83e3e Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 4 Sep 2022 18:37:42 +0200 Subject: new phone firmware --- fw/fe310/phone/app/app.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 fw/fe310/phone/app/app.h (limited to 'fw/fe310/phone/app/app.h') 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 + +#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); -- cgit v1.2.3