Prusa MINI Firmware overview
window_dlg_popup.h
Go to the documentation of this file.
1 /*
2  * window_dlg_popup.h
3  *
4  * Created on: Nov 11, 2019
5  * Author: Migi
6  */
7 
8 #ifndef WINDOW_DLG_POPUP_H_
9 #define WINDOW_DLG_POPUP_H_
10 
11 #include "window.h"
12 #include "marlin_server.h"
13 
15 
16 extern int16_t WINDOW_CLS_DLG_POPUP;
17 
18 #pragma pack(push)
19 #pragma pack(1)
20 
21 typedef struct _window_dlg_popup_t {
28  uint32_t timer;
29  uint16_t flags;
31 
33 
34 typedef struct _window_class_dlg_popup_t {
37 
38 #pragma pack(pop)
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif //__cplusplus
43 
45 extern void gui_pop_up(void);
46 
47 #ifdef __cplusplus
48 }
49 #endif //__cplusplus
50 
51 #endif /* WINDOW_DLG_POPUP_H_ */
gui_pop_up
void gui_pop_up(void)
Definition: window_dlg_popup.c:62
window_dlg_popup_t
struct _window_dlg_popup_t window_dlg_popup_t
Definition: window_dlg_popup.h:14
marlin_server.h
window_dlg_popup_init
void window_dlg_popup_init(window_dlg_popup_t *window)
Definition: window_dlg_popup.c:21
window_capture
int16_t window_capture(void)
Definition: window.c:169
_rect_ui16_t::y
uint16_t y
Definition: guitypes.h:71
_rect_ui16_t::w
uint16_t w
Definition: guitypes.h:72
_font_t
Definition: guitypes.h:76
msg_stack
Definition: marlin_server.h:26
_gui_defaults_t::color_text
color_t color_text
Definition: guitypes.h:108
window_1
window_t * window_1
Definition: window.c:14
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
window_class_dlg_popup
const window_class_dlg_popup_t window_class_dlg_popup
Definition: window_dlg_popup.c:51
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
_gui_defaults_t::font
font_t * font
Definition: guitypes.h:110
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
_window_class_dlg_popup_t
Definition: window_dlg_popup.h:34
window_dlg_popup_draw
void window_dlg_popup_draw(window_dlg_popup_t *window)
Definition: window_dlg_popup.c:30
WINDOW_CLS_USER
#define WINDOW_CLS_USER
Definition: window.h:21
window_class_dlg_popup
const window_class_dlg_popup_t window_class_dlg_popup
Definition: window_dlg_popup.c:51
window_dlg_popup.h
_window_dlg_popup_t::timer
uint32_t timer
Definition: window_dlg_popup.h:28
_window_dlg_popup_t::text
char text[MSG_MAX_LENGTH]
Definition: window_dlg_popup.h:30
_window_dlg_popup_t::color_text
color_t color_text
Definition: window_dlg_popup.h:24
dbg.h
_display_t::fill_rect
display_fill_rect_t * fill_rect
Definition: display.h:33
HAL_GetTick
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
_window_t::f_invalid
uint32_t f_invalid
Definition: window.h:87
_gui_defaults_t::padding
padding_ui8_t padding
Definition: guitypes.h:112
msg_stack::msg_data
char msg_data[MSG_STACK_SIZE][MSG_MAX_LENGTH]
Definition: marlin_server.h:28
gui_invalidate
void gui_invalidate(void)
Definition: gui.c:66
_window_t
Definition: window.h:76
msg_stack
msg_stack_t msg_stack
Definition: marlin_server.cpp:99
_gui_defaults_t::color_back
color_t color_back
Definition: guitypes.h:107
display_helper.h
window_set_capture
void window_set_capture(int16_t id)
Definition: window.c:500
_padding_ui8_t
Definition: guitypes.h:86
WINDOW_CLS_DLG_POPUP
int16_t WINDOW_CLS_DLG_POPUP
Definition: window_dlg_popup.c:16
_rect_ui16_t
Definition: guitypes.h:69
render_text_align
void render_text_align(rect_ui16_t rc, const char *text, font_t *font, color_t clr0, color_t clr1, padding_ui8_t padding, uint16_t flags)
Definition: display_helper.c:6
uint8_t
const uint8_t[]
Definition: 404_html.c:3
_window_class_t
Definition: window.h:67
display
display_t * display
Definition: display.c:6
_rect_ui16_t::h
uint16_t h
Definition: guitypes.h:73
_window_t::rect
rect_ui16_t rect
Definition: window.h:101
_window_dlg_popup_t::flags
uint16_t flags
Definition: window_dlg_popup.h:29
POPUP_DELAY_MS
#define POPUP_DELAY_MS
Definition: window_dlg_popup.c:14
MSG_MAX_LENGTH
#define MSG_MAX_LENGTH
Definition: marlin_server.h:19
_window_dlg_popup_t::font_title
font_t * font_title
Definition: window_dlg_popup.h:26
_window_t::f_visible
uint32_t f_visible
Definition: window.h:85
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
window_create_ptr
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
_window_class_dlg_popup_t::cls
window_class_t cls
Definition: window_dlg_popup.h:35
window.h
_window_dlg_popup_t::padding
padding_ui8_t padding
Definition: window_dlg_popup.h:27
_rect_ui16_t::x
uint16_t x
Definition: guitypes.h:70
_window_dlg_popup_t::win
window_t win
Definition: window_dlg_popup.h:22
color_t
uint32_t color_t
Definition: guitypes.h:62
_gui_defaults_t::font_big
font_t * font_big
Definition: guitypes.h:111
window_init_t
void() window_init_t(void *window)
Definition: window.h:55
WINDOW_CLS_DLG_POPUP
int16_t WINDOW_CLS_DLG_POPUP
Definition: window_dlg_popup.c:16
gui.h
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
_window_dlg_popup_t::color_back
color_t color_back
Definition: window_dlg_popup.h:23
window_class_dlg_popup_t
struct _window_class_dlg_popup_t window_class_dlg_popup_t
_window_t::flg
uint32_t flg
Definition: window.h:81
WINDOW_FLG_ENABLED
#define WINDOW_FLG_ENABLED
Definition: window.h:25
gui_pop_up
void gui_pop_up(void)
Definition: window_dlg_popup.c:62
_window_dlg_popup_t::font
font_t * font
Definition: window_dlg_popup.h:25
ALIGN_LEFT_CENTER
#define ALIGN_LEFT_CENTER
Definition: guitypes.h:21
_window_dlg_popup_t
Definition: window_dlg_popup.h:21