Prusa MINI Firmware overview
window_dlg_preheat.h
Go to the documentation of this file.
1 /*
2  * window_dlg_preheat.h
3  *
4  * Created on: 2019-11-18
5  * Author: Vana Radek
6  */
7 
8 #ifndef WINDOW_DLG_PREHEAT_H_
9 #define WINDOW_DLG_PREHEAT_H_
10 
11 #include "window.h"
12 #include "window_text.h"
13 #include "window_list.h"
14 
17 
18 extern int16_t WINDOW_CLS_DLG_PREHEAT;
19 
20 #pragma pack(push)
21 #pragma pack(1)
22 
23 //todo some items are most likely unused - remove them
24 typedef struct _window_dlg_preheat_t {
31  uint32_t timer;
32  uint16_t flags;
37  const char *caption;
39 
43 
44 #pragma pack(pop)
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif //__cplusplus
49 
51 extern int gui_dlg_preheat(const char *caption);
52 extern int gui_dlg_preheat_autoselect_if_able(const char *caption);
53 extern int gui_dlg_preheat_forced(const char *caption); //no return option
54 extern int gui_dlg_preheat_autoselect_if_able_forced(const char *caption); //no return option
55 extern int gui_dlg_list(const char *caption, window_list_item_t *filament_items,
56  dlg_on_click_cb *on_click, size_t count, int32_t ttl);
57 #ifdef __cplusplus
58 }
59 #endif //__cplusplus
60 
61 #endif /* WINDOW_DLG_PREHEAT_H_ */
window_draw_t
void() window_draw_t(void *window)
Definition: window.h:57
_window_text_t
Definition: window_text.h:15
WINDOW_CLS_DLG_PREHEAT
int16_t WINDOW_CLS_DLG_PREHEAT
Definition: window_dlg_preheat.c:22
window_capture
int16_t window_capture(void)
Definition: window.c:169
_window_dlg_preheat_t::on_click
dlg_on_click_cb * on_click
Definition: window_dlg_preheat.h:36
_rect_ui16_t::y
uint16_t y
Definition: guitypes.h:71
_font_t::h
uint8_t h
Definition: guitypes.h:78
_window_dlg_preheat_t::flags
uint16_t flags
Definition: window_dlg_preheat.h:32
_font_t
Definition: guitypes.h:76
marlin_client.h
gui_dlg_preheat_autoselect_if_able_forced
int gui_dlg_preheat_autoselect_if_able_forced(const char *caption)
Definition: window_dlg_preheat.c:163
_window_frame_t
Definition: window_frame.h:18
_gui_defaults_t::color_text
color_t color_text
Definition: guitypes.h:108
set_filament
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
FILAMENT_NONE
Definition: filament.h:26
window_class_dlg_preheat_t
struct _window_class_dlg_preheat_t window_class_dlg_preheat_t
_window_dlg_preheat_t::list
window_list_t list
Definition: window_dlg_preheat.h:34
window_class_dlg_preheat
const window_class_dlg_preheat_t window_class_dlg_preheat
Definition: window_dlg_preheat.c:114
window_list_filament_item_cb
void window_list_filament_item_cb(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window_dlg_preheat.c:39
gui_dlg_preheat
int gui_dlg_preheat(const char *caption)
Definition: window_dlg_preheat.c:126
gui_dlg_preheat_autoselect_if_able
int gui_dlg_preheat_autoselect_if_able(const char *caption)
Definition: window_dlg_preheat.c:135
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
window_dlg_preheat.h
window_dlg_preheat_event
void window_dlg_preheat_event(window_dlg_preheat_t *window, uint8_t event, void *param)
Definition: window_dlg_preheat.c:97
_gui_defaults_t::font
font_t * font
Definition: guitypes.h:110
_window_class_frame_t::cls
window_class_t cls
Definition: window_frame.h:15
_window_list_t::icon_rect
rect_ui16_t icon_rect
Definition: window_list.h:22
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
_window_dlg_preheat_t::color_back
color_t color_back
Definition: window_dlg_preheat.h:26
padding_ui8
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
WINDOW_CLS_USER
#define WINDOW_CLS_USER
Definition: window.h:21
fil
FIL fil
Definition: pngview.c:11
_window_class_dlg_preheat_t
Definition: window_dlg_preheat.h:40
_gui_defaults_t::msg_box_sz
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
WINDOW_CLS_DLG_PREHEAT
int16_t WINDOW_CLS_DLG_PREHEAT
Definition: window_dlg_preheat.c:22
dbg.h
filaments
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
FILAMENT_PLA
Definition: filament.h:27
HAL_GetTick
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
_window_t::id
int16_t id
Definition: window.h:79
_gui_defaults_t::padding
padding_ui8_t padding
Definition: guitypes.h:112
gui_dlg_preheat_autoselect_if_able
int gui_dlg_preheat_autoselect_if_able(const char *caption)
Definition: window_dlg_preheat.c:135
WINDOW_CLS_LIST
#define WINDOW_CLS_LIST
Definition: window.h:13
window_done_t
void() window_done_t(void *window)
Definition: window.h:56
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
_window_list_t::win
window_t win
Definition: window_list.h:16
gui_invalidate
void gui_invalidate(void)
Definition: gui.c:66
_window_dlg_preheat_t::filament_items
window_list_item_t * filament_items
Definition: window_dlg_preheat.h:35
WINDOW_EVENT_BTN_UP
#define WINDOW_EVENT_BTN_UP
Definition: window.h:39
_window_t
Definition: window.h:76
_window_list_t::padding
padding_ui8_t padding
Definition: window_list.h:20
void
void
Definition: png.h:1083
window_dlg_preheat_t
struct _window_dlg_preheat_t window_dlg_preheat_t
Definition: window_dlg_preheat.h:15
get_filament
FILAMENT_t get_filament()
Definition: filament.cpp:41
_marlin_vars_t::target_nozzle
float target_nozzle
Definition: marlin_vars.h:85
filament_t::long_name
const char * long_name
Definition: filament.h:18
_gui_defaults_t::color_back
color_t color_back
Definition: guitypes.h:107
filament_t::nozzle
uint16_t nozzle
Definition: filament.h:19
window_class_frame
const window_class_frame_t window_class_frame
Definition: window_frame.c:65
gui_dlg_preheat_forced
int gui_dlg_preheat_forced(const char *caption)
Definition: window_dlg_preheat.c:152
gui_dlg_list
int gui_dlg_list(const char *caption, window_list_item_t *filament_items, dlg_on_click_cb *on_click, size_t count, int32_t ttl)
Definition: window_dlg_preheat.c:183
display_helper.h
window_set_capture
void window_set_capture(int16_t id)
Definition: window.c:500
window_class_dlg_preheat
const window_class_dlg_preheat_t window_class_dlg_preheat
Definition: window_dlg_preheat.c:114
_window_class_t::init
window_init_t * init
Definition: window.h:70
IDR_PNG_filescreen_icon_up_folder
#define IDR_PNG_filescreen_icon_up_folder
Definition: resource.h:42
_padding_ui8_t
Definition: guitypes.h:86
_window_dlg_preheat_t::font
font_t * font
Definition: window_dlg_preheat.h:28
gui_dlg_preheat
int gui_dlg_preheat(const char *caption)
Definition: window_dlg_preheat.c:126
marlin_update_vars
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
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
_window_dlg_preheat_t::color_text
color_t color_text
Definition: window_dlg_preheat.h:27
_set_filament
static void _set_filament(FILAMENT_t index)
Definition: window_dlg_preheat.c:49
filament.h
window_frame_event
void window_frame_event(window_frame_t *window, uint8_t event, void *param)
Definition: window_frame.c:27
uint8_t
const uint8_t[]
Definition: 404_html.c:3
_window_class_t
Definition: window.h:67
MARLIN_VAR_MSK
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
_rect_ui16_t::h
uint16_t h
Definition: guitypes.h:73
_window_class_dlg_preheat_t::cls
window_class_t cls
Definition: window_dlg_preheat.h:41
_window_dlg_preheat_t
Definition: window_dlg_preheat.h:24
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
_window_dlg_preheat_t::timer
uint32_t timer
Definition: window_dlg_preheat.h:31
WINDOW_EVENT_CLICK
#define WINDOW_EVENT_CLICK
Definition: window.h:46
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_list_t::index
int index
Definition: window_list.h:24
window_dlg_preheat_click_cb
void window_dlg_preheat_click_cb(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:60
window.h
gui_dlg_preheat_forced
int gui_dlg_preheat_forced(const char *caption)
Definition: window_dlg_preheat.c:152
gui_dlg_list
int gui_dlg_list(const char *caption, window_list_item_t *filament_items, dlg_on_click_cb *on_click, size_t count, int32_t ttl)
Definition: window_dlg_preheat.c:183
_marlin_vars_t
Definition: marlin_vars.h:77
window_frame_done
void window_frame_done(window_frame_t *window)
Definition: window_frame.c:12
FILAMENT_t
FILAMENT_t
Definition: filament.h:25
_PREHEAT_FILAMENT_CNT
#define _PREHEAT_FILAMENT_CNT
Definition: window_dlg_preheat.c:26
window_1
window_t * window_1
Definition: window.c:14
_window_dlg_preheat_t::padding
padding_ui8_t padding
Definition: window_dlg_preheat.h:30
_window_dlg_preheat_t::text
window_text_t text
Definition: window_dlg_preheat.h:33
color_t
uint32_t color_t
Definition: guitypes.h:62
_gui_defaults_t::font_big
font_t * font_big
Definition: guitypes.h:111
dlg_on_click_cb
void() dlg_on_click_cb(window_dlg_preheat_t *)
Definition: window_dlg_preheat.h:16
window_init_t
void() window_init_t(void *window)
Definition: window.h:55
window_text.h
gui.h
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
MARLIN_VAR_TTEM_NOZ
#define MARLIN_VAR_TTEM_NOZ
Definition: marlin_vars.h:21
WINDOW_EVENT_BTN_DN
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
window_set_item_count
void window_set_item_count(int16_t id, int count)
Definition: window.c:573
window_dlg_preheat_init
void window_dlg_preheat_init(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:67
window_list_item_t
void() window_list_item_t(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window.h:61
_window_list_t
Definition: window_list.h:15
gui_dlg_preheat_autoselect_if_able_forced
int gui_dlg_preheat_autoselect_if_able_forced(const char *caption)
Definition: window_dlg_preheat.c:163
_window_t::flg
uint32_t flg
Definition: window.h:81
window_set_item_callback
void window_set_item_callback(int16_t id, window_list_item_t *fnc)
Definition: window.c:787
window_set_item_index
void window_set_item_index(int16_t id, int index)
Definition: window.c:598
nozzle
Nozzle nozzle
Definition: nozzle.cpp:29
_window_dlg_preheat_t::caption
const char * caption
Definition: window_dlg_preheat.h:37
marlin_gcode_printf
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
window_frame_draw
void window_frame_draw(window_frame_t *window)
Definition: window_frame.c:15
WINDOW_FLG_INVALID
#define WINDOW_FLG_INVALID
Definition: window.h:26
WINDOW_FLG_ENABLED
#define WINDOW_FLG_ENABLED
Definition: window.h:25
_window_dlg_preheat_t::win
window_t win
Definition: window_dlg_preheat.h:25
window_list.h
window_list_filament_item_forced_cb
void window_list_filament_item_forced_cb(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window_dlg_preheat.c:29
_window_dlg_preheat_t::font_title
font_t * font_title
Definition: window_dlg_preheat.h:29
window_dlg_preheat_click_forced_cb
void window_dlg_preheat_click_forced_cb(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:55