48 #include "gui_config.h" 51 #include "gui/gui_defs.h" 57 #include "gui/gui_buff.h" 58 #include "gui/gui_linkedlist.h" 59 #include "gui/gui_string.h" 60 #include "gui/gui_timer.h" 61 #include "gui/gui_math.h" 62 #include "gui/gui_mem.h" 63 #include "gui/gui_translate.h" 66 #include "system/gui_ll.h" 67 #include "system/gui_sys.h" 77 #define GUI_CORE_PROTECT(p) if (p) gui_sys_protect() 78 #define GUI_CORE_UNPROTECT(p) if (p) gui_sys_unprotect() 80 #define GUI_CORE_PROTECT(p) GUI_UNUSED(p) 81 #define GUI_CORE_UNPROTECT(p) GUI_UNUSED(p) 91 #define GUI_DEBUG(fmt, ...) printf(fmt, ##__VA_ARGS__) 98 #define GUI_MEMALLOC(size) gui_mem_calloc(1, size) 104 #define GUI_MEMREALLOC(ptr, size) gui_mem_realloc(ptr, size) 110 #define GUI_MEMFREE(p) do { \ 122 #define GUI_MAX(x, y) ((x) > (y) ? (x) : (y)) 131 #define GUI_MIN(x, y) ((x) < (y) ? (x) : (y)) 139 #define GUI_ABS(x) ((x) >= 0 ? (x) : -(x)) 146 #define GUI_UNUSED(x) (void)(x) 153 #define GUI_UNUSED2(x, y) { GUI_UNUSED(x); GUI_UNUSED(y); } 160 #define GUI_UNUSED3(x, y, z) { GUI_UNUSED2(x, y); GUI_UNUSED(z); } 167 #define GUI_UNUSED4(x, y, z, k) { GUI_UNUSED3(x, y, z); GUI_UNUSED(k); } 174 #define GUI_ROUND(x) ((float)(x) + 0.5f) 181 #define GUI_MEM_ALIGN(x) ((x + (GUI_CFG_MEM_ALIGNMENT - 1)) & ~(GUI_CFG_MEM_ALIGNMENT - 1)) 189 #include "widget/gui_widget.h" 190 #include "gui/gui_input.h" 196 #if GUI_CFG_OS || __DOXYGEN__ 202 #define gui_protect(protect) 203 #define gui_unprotect(unprotect)
guir_t
Results enumeration.
Definition: gui_defs.h:167
guir_t gui_init(void)
Initializes GUI stack. In addition, it prepares memory for work with widgets on later usage and calls...
Definition: gui.c:811
uint8_t gui_unprotect(const uint8_t unprotect)
Unprotect core from multiple thread access.
Definition: gui.c:939
uint8_t gui_delay(const uint32_t ms)
Delay GUI in units of milliseconds.
Definition: gui.c:954
uint8_t gui_protect(const uint8_t protect)
Protect core from multiple thread access.
Definition: gui.c:926
int32_t gui_process(void)
Processes all drawing operations for GUI.
Definition: gui.c:876
uint8_t gui_seteventcallback(gui_eventcallback_t cb)
Set callback for global events from GUI.
Definition: gui.c:909
void(* gui_eventcallback_t)(void)
Global event callback function declaration.
Definition: gui_defs.h:270