Prusa MINI Firmware overview
wizard_progress_bar.h
Go to the documentation of this file.
1 // selftest_temp_cool.h
2 #ifndef _WIZARD_PROGRESS_BAR_H
3 #define _WIZARD_PROGRESS_BAR_H
4 
5 #include <inttypes.h>
6 #include "gui.h"
7 #include "wizard_types.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif //__cplusplus
12 
13 extern int wiz_get_percent(int min, int max, int value);
14 extern int wiz_set_progressbar(window_progress_t *p_progress,
15  int min, int max, int value);
16 extern int wiz_set_progressbar_range(window_progress_t *p_progress,
17  int min, int max, int range_min, int range_max, int value);
19  int min, int max, int range_dif, int value);
20 extern void wiz_set_progressbar_dual_cl(window_progress_t *p_progress,
21  int value, int cl_val, color_t cl_0, color_t cl_100);
22 
23 #ifdef __cplusplus
24 }
25 #endif //__cplusplus
26 
27 #endif //_WIZARD_PROGRESS_BAR_H
wiz_set_progressbar
int wiz_set_progressbar(window_progress_t *p_progress, int min, int max, int value)
Definition: wizard_progress_bar.c:29
wiz_set_progressbar_range
int wiz_set_progressbar_range(window_progress_t *p_progress, int min, int max, int range_min, int range_max, int value)
Definition: wizard_progress_bar.c:16
_window_progress_t::color_progress
color_t color_progress
Definition: window_progress.h:19
COLOR_RED
#define COLOR_RED
Definition: guitypes.h:42
wiz_set_progressbar_range_auto
void wiz_set_progressbar_range_auto(window_progress_t *p_progress, int min, int max, int range_dif, int value)
Definition: wizard_progress_bar.c:5
wizard_progress_bar.h
max
#define max(a, b)
Definition: wiring_constants.h:40
wiz_set_progressbar_range_auto
void wiz_set_progressbar_range_auto(window_progress_t *p_progress, int min, int max, int range_dif, int value)
Definition: wizard_progress_bar.c:5
COLOR_LIME
#define COLOR_LIME
Definition: guitypes.h:44
wiz_set_progressbar_dual_cl
void wiz_set_progressbar_dual_cl(window_progress_t *p_progress, int value, int cl_val, color_t cl_0, color_t cl_100)
Definition: wizard_progress_bar.c:62
wiz_get_percent
int wiz_get_percent(int min, int max, int value)
Definition: wizard_progress_bar.c:40
_window_t::id
int16_t id
Definition: window.h:79
min
#define min(a, b)
Definition: wiring_constants.h:36
wiz_get_percent
int wiz_get_percent(int min, int max, int value)
Definition: wizard_progress_bar.c:40
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
COLOR_BLUE
#define COLOR_BLUE
Definition: guitypes.h:45
wizard_types.h
wiz_set_progressbar_range
int wiz_set_progressbar_range(window_progress_t *p_progress, int min, int max, int range_min, int range_max, int value)
Definition: wizard_progress_bar.c:16
color_t
uint32_t color_t
Definition: guitypes.h:62
gui.h
_window_progress_t::win
window_t win
Definition: window_progress.h:16
_window_progress_t
Definition: window_progress.h:15
wiz_set_progressbar_dual_cl
void wiz_set_progressbar_dual_cl(window_progress_t *p_progress, int value, int cl_val, color_t cl_0, color_t cl_100)
Definition: wizard_progress_bar.c:62
mix_cl
static void mix_cl(color_t *ret, color_t cl_0, color_t cl_100, int progress, int chan)
Definition: wizard_progress_bar.c:49
wiz_set_progressbar
int wiz_set_progressbar(window_progress_t *p_progress, int min, int max, int value)
Definition: wizard_progress_bar.c:29