20#define GUI_DISPLAY_WIDTH 128
21#define GUI_DISPLAY_HEIGHT 64
23#define GUI_STATUS_BAR_X 0
24#define GUI_STATUS_BAR_Y 0
25#define GUI_STATUS_BAR_WIDTH GUI_DISPLAY_WIDTH
29#define GUI_STATUS_BAR_HEIGHT 13
33#define GUI_STATUS_BAR_WORKAREA_HEIGHT 8
36#define GUI_WINDOW_Y GUI_STATUS_BAR_HEIGHT
37#define GUI_WINDOW_WIDTH GUI_DISPLAY_WIDTH
38#define GUI_WINDOW_HEIGHT (GUI_DISPLAY_HEIGHT - GUI_WINDOW_Y)
40#define GUI_THREAD_FLAG_DRAW (1 << 0)
41#define GUI_THREAD_FLAG_INPUT (1 << 1)
42#define GUI_THREAD_FLAG_ALL (GUI_THREAD_FLAG_DRAW | GUI_THREAD_FLAG_INPUT)
44ARRAY_DEF(ViewPortArray,
ViewPort*, M_PTR_OPLIST);
61 uint8_t ongoing_input;
GUI: internal Canvas API.
GuiLayer
Gui layers.
Definition gui.h:16
@ GuiLayerMAX
Don't use or move, special value.
Definition gui.h:26
void gui_input_events_callback(const void *value, void *ctx)
Input event callback.
Definition gui.c:45
void gui_update(Gui *gui)
Update GUI, request redraw.
Definition gui.c:40
void gui_unlock(Gui *gui)
Unlock GUI.
Definition gui.c:346
void gui_lock(Gui *gui)
Lock GUI.
Definition gui.c:341
size_t gui_active_view_port_count(Gui *gui, GuiLayer layer)
Get count of view ports in layer.
Definition gui.c:20
ViewPort * gui_view_port_find_enabled(ViewPortArray_t array)
Find enabled ViewPort in ViewPortArray.
Definition gui.c:6
Canvas structure.
Definition canvas_i.h:40
Definition message_queue.c:16
Gui structure.
Definition gui_i.h:47
Definition view_port_i.h:11
void * FuriThreadId
Unique thread identifier type (used by the OS kernel).
Definition thread.h:56
GUI: internal ViewPort API.