Prusa MINI Firmware overview
|
#include "window_progress.h"
#include "gui.h"
◆ WINDOW_PROGRESS_MAX_TEXT
#define WINDOW_PROGRESS_MAX_TEXT 16 |
◆ window_progress_init()
◆ window_progress_draw()
25 sprintf(text, window->
format, (
double)window->
value);
26 int progress_w = (
int)(rc.
w * (window->
value - window->
min) / (window->
max - window->
min));
◆ window_class_progress
void() window_draw_t(void *window)
Definition: window.h:57
color_t color_text
Definition: window_progress.h:18
uint16_t y
Definition: guitypes.h:71
color_t color_back
Definition: window_progress.h:17
uint16_t w
Definition: guitypes.h:72
color_t color_text
Definition: guitypes.h:108
color_t color_progress
Definition: window_progress.h:19
#define ALIGN_CENTER
Definition: guitypes.h:19
font_t * font
Definition: guitypes.h:110
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
#define WINDOW_FLG_VISIBLE
Definition: window.h:24
struct _window_progress_t window_progress_t
#define COLOR_LIME
Definition: guitypes.h:44
#define WINDOW_PROGRESS_MAX_TEXT
Definition: window_progress.c:5
font_t * font
Definition: window_progress.h:20
rect_ui16_t rect_ui16_sub_padding_ui8(rect_ui16_t rc, padding_ui8_t pad)
Definition: guitypes.c:55
display_fill_rect_t * fill_rect
Definition: display.h:33
uint8_t alignment
Definition: window_progress.h:22
padding_ui8_t padding
Definition: guitypes.h:112
void window_progress_init(window_progress_t *window)
Definition: window_progress.c:7
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
float max
Definition: window_progress.h:27
color_t color_back
Definition: guitypes.h:107
Definition: guitypes.h:69
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
display_t * display
Definition: display.c:6
uint16_t h
Definition: guitypes.h:73
rect_ui16_t rect
Definition: window.h:101
display_draw_rect_t * draw_rect
Definition: display.h:32
float min
Definition: window_progress.h:26
char * format
Definition: window_progress.h:24
uint16_t x
Definition: guitypes.h:70
padding_ui8_t padding
Definition: window_progress.h:21
float value
Definition: window_progress.h:25
int
Definition: createSpeedLookupTable.py:15
void window_progress_draw(window_progress_t *window)
Definition: window_progress.c:21
void() window_init_t(void *window)
Definition: window.h:55
gui_defaults_t gui_defaults
Definition: gui.c:20
uint8_t height_progress
Definition: window_progress.h:23
window_t win
Definition: window_progress.h:16
uint32_t flg
Definition: window.h:81
#define WINDOW_FLG_INVALID
Definition: window.h:26