Prusa MINI Firmware overview
|
#include "window_numb.h"
#include "gui.h"
◆ WINDOW_NUMB_MAX_TEXT
#define WINDOW_NUMB_MAX_TEXT 16 |
◆ window_numb_init()
◆ window_numb_draw()
25 sprintf(text, window->
format, (
int)(window->
value));
27 sprintf(text, window->
format, (
double)window->
value);
◆ window_class_numb
void() window_draw_t(void *window)
Definition: window.h:57
padding_ui8_t padding
Definition: window_numb.h:24
void window_numb_init(window_numb_t *window)
Definition: window_numb.c:7
#define WINDOW_NUMB_MAX_TEXT
Definition: window_numb.c:5
color_t color_text
Definition: guitypes.h:108
#define WINDOW_CLS_NUMB
Definition: window.h:11
font_t * font
Definition: window_numb.h:21
color_t color_text
Definition: window_numb.h:20
font_t * font
Definition: guitypes.h:110
#define WINDOW_FLG_VISIBLE
Definition: window.h:24
float value
Definition: window_numb.h:22
color_t color_back
Definition: window_numb.h:19
uint8_t alignment
Definition: window_numb.h:25
padding_ui8_t padding
Definition: guitypes.h:112
char * format
Definition: window_numb.h:23
#define COLOR_ORANGE
Definition: guitypes.h:57
#define WINDOW_FLG_CAPTURE
Definition: window.h:29
#define WINDOW_FLG_NUMB_FLOAT2INT
Definition: window_numb.h:8
color_t color_back
Definition: guitypes.h:107
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
rect_ui16_t rect
Definition: window.h:101
#define WINDOW_FLG_FOCUSED
Definition: window.h:27
void window_numb_draw(window_numb_t *window)
Definition: window_numb.c:17
uint32_t color_t
Definition: guitypes.h:62
void() window_init_t(void *window)
Definition: window.h:55
gui_defaults_t gui_defaults
Definition: gui.c:20
uint8_t alignment
Definition: guitypes.h:113
struct _window_numb_t window_numb_t
uint32_t flg
Definition: window.h:81
window_t win
Definition: window_numb.h:18
#define WINDOW_FLG_INVALID
Definition: window.h:26