Prusa MINI Firmware overview
gui.h
Go to the documentation of this file.
1 // gui.h
2 #ifndef _GUI_H
3 #define _GUI_H
4 
5 #include "guiconfig.h"
6 #include "guitypes.h"
7 #include "gui_timer.h"
8 #include "display.h"
9 #include "display_helper.h"
10 
11 #ifdef GUI_JOGWHEEL_SUPPORT
12  #include "jogwheel.h"
13 #endif //GUI_JOGWHEEL_SUPPORT
14 
15 #ifdef GUI_WINDOW_SUPPORT
16  #include "window.h"
17  #include "window_frame.h"
18  #include "window_text.h"
19  #include "window_numb.h"
20  #include "window_icon.h"
21  #include "window_list.h"
22  #include "window_spin.h"
23  #include "window_term.h"
24  #include "window_menu.h"
25  #include "window_msgbox.h"
26  #include "window_progress.h"
27  #include "screen.h"
28 #endif //GUI_WINDOW_SUPPORT
29 
30 #ifdef GUI_USE_RTOS
31  #include "cmsis_os.h"
32 #endif //GUI_USE_RTOS
33 
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif //__cplusplus
39 
40 #ifdef GUI_USE_RTOS
41 extern osThreadId gui_task_handle;
42 #endif //GUI_USE_RTOS
43 
45 
47 
48 extern int8_t menu_timeout_enabled;
49 
50 extern void *gui_malloc(unsigned int size);
51 
52 extern void gui_free(void *ptr);
53 
54 extern void gui_init(void);
55 
56 extern void gui_invalidate(void);
57 
58 extern void gui_redraw(void);
59 
60 #ifdef GUI_WINDOW_SUPPORT
61 
62 extern void gui_loop(void);
63 
64 extern int gui_msgbox_ex(const char *title, const char *text, uint16_t flags, rect_ui16_t rect, uint16_t id_icon, const char **buttons);
65 
66 extern int gui_msgbox(const char *text, uint16_t flags);
67 
68 #endif //GUI_WINDOW_SUPPORT
69 
70 #ifdef GUI_JOGWHEEL_SUPPORT
71 
72 extern void gui_reset_jogwheel(void);
73 
74 #endif //GUI_JOGWHEEL_SUPPORT
75 
76 #ifdef __cplusplus
77 }
78 #endif //__cplusplus
79 
80 #endif //_GUI_H
gui_loop_cb
gui_loop_cb_t * gui_loop_cb
Definition: gui.c:32
_gui_defaults_t
Definition: guitypes.h:106
window_spin.h
gui_free
void gui_free(void *ptr)
Definition: gui.c:39
osThreadId
TaskHandle_t osThreadId
Definition: cmsis_os.h:283
gui_init
void gui_init(void)
Definition: gui.c:43
window_term.h
screen.h
window_menu.h
gui_loop_cb_t
void() gui_loop_cb_t(void)
Definition: gui.h:34
gui_malloc
void * gui_malloc(unsigned int size)
Definition: gui.c:35
menu_timeout_enabled
int8_t menu_timeout_enabled
Definition: guimain.c:103
window_msgbox.h
window_progress.h
guitypes.h
gui_invalidate
void gui_invalidate(void)
Definition: gui.c:66
gui_timer.h
void
void
Definition: png.h:1083
display_helper.h
_rect_ui16_t
Definition: guitypes.h:69
window_frame.h
display.h
jogwheel.h
window.h
window_text.h
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
window_icon.h
cmsis_os.h
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
gui_redraw
void gui_redraw(void)
Definition: gui.c:55
window_numb.h
window_list.h
size
static png_bytep size_t size
Definition: pngwrite.c:2170
guiconfig.h