Prusa MINI Firmware overview
|
Go to the documentation of this file.
8 #ifndef WINDOW_DLG_PREHEAT_H_
9 #define WINDOW_DLG_PREHEAT_H_
void() window_draw_t(void *window)
Definition: window.h:57
Definition: window_text.h:15
int16_t WINDOW_CLS_DLG_PREHEAT
Definition: window_dlg_preheat.c:22
int16_t window_capture(void)
Definition: window.c:169
dlg_on_click_cb * on_click
Definition: window_dlg_preheat.h:36
uint16_t y
Definition: guitypes.h:71
uint8_t h
Definition: guitypes.h:78
uint16_t flags
Definition: window_dlg_preheat.h:32
Definition: guitypes.h:76
int gui_dlg_preheat_autoselect_if_able_forced(const char *caption)
Definition: window_dlg_preheat.c:163
Definition: window_frame.h:18
color_t color_text
Definition: guitypes.h:108
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
Definition: filament.h:26
struct _window_class_dlg_preheat_t window_class_dlg_preheat_t
window_list_t list
Definition: window_dlg_preheat.h:34
const window_class_dlg_preheat_t window_class_dlg_preheat
Definition: window_dlg_preheat.c:114
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
int gui_dlg_preheat(const char *caption)
Definition: window_dlg_preheat.c:126
int gui_dlg_preheat_autoselect_if_able(const char *caption)
Definition: window_dlg_preheat.c:135
void window_invalidate(int16_t id)
Definition: window.c:304
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
void window_dlg_preheat_event(window_dlg_preheat_t *window, uint8_t event, void *param)
Definition: window_dlg_preheat.c:97
font_t * font
Definition: guitypes.h:110
window_class_t cls
Definition: window_frame.h:15
rect_ui16_t icon_rect
Definition: window_list.h:22
void window_destroy(int16_t id)
Definition: window.c:132
color_t color_back
Definition: window_dlg_preheat.h:26
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
#define WINDOW_CLS_USER
Definition: window.h:21
FIL fil
Definition: pngview.c:11
Definition: window_dlg_preheat.h:40
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
int16_t WINDOW_CLS_DLG_PREHEAT
Definition: window_dlg_preheat.c:22
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
Definition: filament.h:27
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
int16_t id
Definition: window.h:79
padding_ui8_t padding
Definition: guitypes.h:112
int gui_dlg_preheat_autoselect_if_able(const char *caption)
Definition: window_dlg_preheat.c:135
#define WINDOW_CLS_LIST
Definition: window.h:13
void() window_done_t(void *window)
Definition: window.h:56
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
window_t win
Definition: window_list.h:16
void gui_invalidate(void)
Definition: gui.c:66
window_list_item_t * filament_items
Definition: window_dlg_preheat.h:35
#define WINDOW_EVENT_BTN_UP
Definition: window.h:39
padding_ui8_t padding
Definition: window_list.h:20
void
Definition: png.h:1083
struct _window_dlg_preheat_t window_dlg_preheat_t
Definition: window_dlg_preheat.h:15
FILAMENT_t get_filament()
Definition: filament.cpp:41
float target_nozzle
Definition: marlin_vars.h:85
const char * long_name
Definition: filament.h:18
color_t color_back
Definition: guitypes.h:107
uint16_t nozzle
Definition: filament.h:19
const window_class_frame_t window_class_frame
Definition: window_frame.c:65
int gui_dlg_preheat_forced(const char *caption)
Definition: window_dlg_preheat.c:152
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
const window_class_dlg_preheat_t window_class_dlg_preheat
Definition: window_dlg_preheat.c:114
window_init_t * init
Definition: window.h:70
#define IDR_PNG_filescreen_icon_up_folder
Definition: resource.h:42
Definition: guitypes.h:86
font_t * font
Definition: window_dlg_preheat.h:28
int gui_dlg_preheat(const char *caption)
Definition: window_dlg_preheat.c:126
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
void() window_event_t(void *window, uint8_t event, void *param)
Definition: window.h:58
Definition: guitypes.h:69
color_t color_text
Definition: window_dlg_preheat.h:27
static void _set_filament(FILAMENT_t index)
Definition: window_dlg_preheat.c:49
void window_frame_event(window_frame_t *window, uint8_t event, void *param)
Definition: window_frame.c:27
const uint8_t[]
Definition: 404_html.c:3
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
uint16_t h
Definition: guitypes.h:73
window_class_t cls
Definition: window_dlg_preheat.h:41
Definition: window_dlg_preheat.h:24
#define WINDOW_CLS_TEXT
Definition: window.h:10
uint32_t timer
Definition: window_dlg_preheat.h:31
#define WINDOW_EVENT_CLICK
Definition: window.h:46
This file contains all the functions prototypes for the HAL module driver.
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
int index
Definition: window_list.h:24
void window_dlg_preheat_click_cb(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:60
int gui_dlg_preheat_forced(const char *caption)
Definition: window_dlg_preheat.c:152
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
Definition: marlin_vars.h:77
void window_frame_done(window_frame_t *window)
Definition: window_frame.c:12
FILAMENT_t
Definition: filament.h:25
#define _PREHEAT_FILAMENT_CNT
Definition: window_dlg_preheat.c:26
window_t * window_1
Definition: window.c:14
padding_ui8_t padding
Definition: window_dlg_preheat.h:30
window_text_t text
Definition: window_dlg_preheat.h:33
uint32_t color_t
Definition: guitypes.h:62
font_t * font_big
Definition: guitypes.h:111
void() dlg_on_click_cb(window_dlg_preheat_t *)
Definition: window_dlg_preheat.h:16
void() window_init_t(void *window)
Definition: window.h:55
gui_defaults_t gui_defaults
Definition: gui.c:20
#define MARLIN_VAR_TTEM_NOZ
Definition: marlin_vars.h:21
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
void window_set_item_count(int16_t id, int count)
Definition: window.c:573
void window_dlg_preheat_init(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:67
void() window_list_item_t(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window.h:61
Definition: window_list.h:15
int gui_dlg_preheat_autoselect_if_able_forced(const char *caption)
Definition: window_dlg_preheat.c:163
uint32_t flg
Definition: window.h:81
void window_set_item_callback(int16_t id, window_list_item_t *fnc)
Definition: window.c:787
void window_set_item_index(int16_t id, int index)
Definition: window.c:598
Nozzle nozzle
Definition: nozzle.cpp:29
const char * caption
Definition: window_dlg_preheat.h:37
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
void window_frame_draw(window_frame_t *window)
Definition: window_frame.c:15
#define WINDOW_FLG_INVALID
Definition: window.h:26
#define WINDOW_FLG_ENABLED
Definition: window.h:25
window_t win
Definition: window_dlg_preheat.h:25
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
font_t * font_title
Definition: window_dlg_preheat.h:29
void window_dlg_preheat_click_forced_cb(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:55