Prusa MINI Firmware overview
window_dlg_wait.h
Go to the documentation of this file.
1 /*
2  * window_dlg_wait.h
3  *
4  * Created on: Nov 5, 2019
5  * Author: Migi
6  */
7 
8 #ifndef WINDOW_DLG_WAIT_H_
9 #define WINDOW_DLG_WAIT_H_
10 
11 #include "window.h"
12 
14 
15 extern int16_t WINDOW_CLS_DLG_WAIT;
16 
17 #pragma pack(push)
18 #pragma pack(1)
19 
20 typedef struct _window_dlg_wait_t {
27  uint32_t timer;
28  int8_t progress;
29  uint16_t flags;
31 
32 typedef struct _window_class_dlg_wait_t {
35 
36 #pragma pack(pop)
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif //__cplusplus
41 
43 
44 extern int gui_dlg_wait(int8_t (*callback)());
45 int8_t gui_marlin_busy_callback(void);
46 
47 #ifdef __cplusplus
48 }
49 #endif //__cplusplus
50 
51 #endif /* WINDOW_DLG_WAIT_H_ */
window_dlg_wait_t
struct _window_dlg_wait_t window_dlg_wait_t
Definition: window_dlg_wait.h:13
window_draw_t
void() window_draw_t(void *window)
Definition: window.h:57
DLG_W8_HOUR_ROT
#define DLG_W8_HOUR_ROT
Definition: window_dlg_wait.c:22
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
marlin_client.h
_gui_defaults_t::color_text
color_t color_text
Definition: guitypes.h:108
window_class_dlg_wait_t
struct _window_class_dlg_wait_t window_class_dlg_wait_t
DLG_W8_FRAME_FLG
#define DLG_W8_FRAME_FLG
Definition: window_dlg_wait.c:20
_window_dlg_wait_t::flags
uint16_t flags
Definition: window_dlg_wait.h:29
ALIGN_CENTER
#define ALIGN_CENTER
Definition: guitypes.h:19
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
_gui_defaults_t::font
font_t * font
Definition: guitypes.h:110
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
WINDOW_CLS_USER
#define WINDOW_CLS_USER
Definition: window.h:21
_gui_defaults_t::msg_box_sz
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
_window_dlg_wait_t::color_back
color_t color_back
Definition: window_dlg_wait.h:22
gui_dlg_wait
int gui_dlg_wait(int8_t(*callback)())
Definition: window_dlg_wait.c:139
_window_dlg_wait_t::padding
padding_ui8_t padding
Definition: window_dlg_wait.h:26
window_dlg_wait_init
void window_dlg_wait_init(window_dlg_wait_t *window)
Definition: window_dlg_wait.c:29
dbg.h
WINDOW_CLS_DLG_WAIT
int16_t WINDOW_CLS_DLG_WAIT
Definition: window_dlg_wait.c:25
DLG_W8_FPS
#define DLG_W8_FPS
Definition: window_dlg_wait.c:23
DLG_W8_HOUR_REDRW
#define DLG_W8_HOUR_REDRW
Definition: window_dlg_wait.c:18
gui_marlin_busy_callback
int8_t gui_marlin_busy_callback()
Definition: window_dlg_wait.c:216
window_class_dlg_wait
const window_class_dlg_wait_t window_class_dlg_wait
Definition: window_dlg_wait.c:128
WINDOW_CLS_DLG_WAIT
int16_t WINDOW_CLS_DLG_WAIT
Definition: window_dlg_wait.c:25
_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
COLOR_GRAY
#define COLOR_GRAY
Definition: guitypes.h:50
gui_dlg_wait
int gui_dlg_wait(int8_t(*callback)())
Definition: window_dlg_wait.c:139
window_dlg_wait_draw
void window_dlg_wait_draw(window_dlg_wait_t *window)
Definition: window_dlg_wait.c:41
window_1
window_t * window_1
Definition: window.c:14
gui_invalidate
void gui_invalidate(void)
Definition: gui.c:66
marlin_motion
int marlin_motion(void)
Definition: marlin_client.c:182
DLG_W8_HOUR_CHNG
#define DLG_W8_HOUR_CHNG
Definition: window_dlg_wait.c:17
COLOR_ORANGE
#define COLOR_ORANGE
Definition: guitypes.h:57
_window_t
Definition: window.h:76
_window_dlg_wait_t::font
font_t * font
Definition: window_dlg_wait.h:24
_gui_defaults_t::color_back
color_t color_back
Definition: guitypes.h:107
marlin_busy
int marlin_busy(void)
Definition: marlin_client.c:152
display_helper.h
window_set_capture
void window_set_capture(int16_t id)
Definition: window.c:500
gui_marlin_busy_callback
int8_t gui_marlin_busy_callback(void)
Definition: window_dlg_wait.c:216
_window_class_dlg_wait_t::cls
window_class_t cls
Definition: window_dlg_wait.h:33
_padding_ui8_t
Definition: guitypes.h:86
_window_dlg_wait_t::font_title
font_t * font_title
Definition: window_dlg_wait.h:25
DLG_W8_PROGRESS
#define DLG_W8_PROGRESS
Definition: window_dlg_wait.c:21
_window_dlg_wait_t::progress
int8_t progress
Definition: window_dlg_wait.h:28
window_event_t
void() window_event_t(void *window, uint8_t event, void *param)
Definition: window.h:58
_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
_window_dlg_wait_t::timer
uint32_t timer
Definition: window_dlg_wait.h:27
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_class_dlg_wait_t
Definition: window_dlg_wait.h:32
_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
COLOR_BLACK
#define COLOR_BLACK
Definition: guitypes.h:40
window.h
_rect_ui16_t::x
uint16_t x
Definition: guitypes.h:70
window_dlg_wait.h
_window_dlg_wait_t::win
window_t win
Definition: window_dlg_wait.h:21
window_dlg_wait_event
void window_dlg_wait_event(window_dlg_wait_t *window, uint8_t event, void *param)
Definition: window_dlg_wait.c:124
color_t
uint32_t color_t
Definition: guitypes.h:62
DLG_W8_ANI_FLG
#define DLG_W8_ANI_FLG
Definition: window_dlg_wait.c:19
_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
gui.h
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
render_icon_align
void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags)
Definition: display_helper.c:55
_window_dlg_wait_t::color_text
color_t color_text
Definition: window_dlg_wait.h:23
_window_t::flg
uint32_t flg
Definition: window.h:81
_display_t::draw_line
display_draw_line_t * draw_line
Definition: display.h:31
IDR_PNG_wizard_icon_hourglass
#define IDR_PNG_wizard_icon_hourglass
Definition: resource.h:56
WINDOW_FLG_ENABLED
#define WINDOW_FLG_ENABLED
Definition: window.h:25
window_class_dlg_wait
const window_class_dlg_wait_t window_class_dlg_wait
Definition: window_dlg_wait.c:128
point_ui16
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154
_window_dlg_wait_t
Definition: window_dlg_wait.h:20