Prusa MINI Firmware overview
|
#include "window_spin.h"
#include "gui.h"
◆ window_numb_draw()
25 sprintf(text, window->
format, (
int)(window->
value));
27 sprintf(text, window->
format, (
double)window->
value);
◆ window_spin_inc()
◆ window_spin_dec()
52 if (window->
index < 0)
◆ window_spin_init()
◆ window_spin_event()
◆ displayTaskHandle
◆ window_class_spin
void() window_draw_t(void *window)
Definition: window.h:57
padding_ui8_t padding
Definition: window_numb.h:24
#define WINDOW_EVENT_CAPT_0
Definition: window.h:44
#define WINDOW_EVENT_CAPT_1
Definition: window.h:45
float min
Definition: window_spin.h:14
window_class_t cls
Definition: window_numb.h:14
int16_t id_parent
Definition: window.h:78
void window_numb_draw(window_numb_t *window)
Definition: window_numb.c:17
#define WINDOW_NUMB_MAX_TEXT
Definition: window_numb.c:5
void window_spin_dec(window_spin_t *window, int dif)
Definition: window_spin.c:50
font_t * font
Definition: window_numb.h:21
#define WINDOW_EVENT_ENC_UP
Definition: window.h:41
color_t color_text
Definition: window_numb.h:20
void window_invalidate(int16_t id)
Definition: window.c:304
#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
#define WINDOW_EVENT_CHANGE
Definition: window.h:47
int16_t id
Definition: window.h:79
void window_spin_inc(window_spin_t *window, int dif)
Definition: window_spin.c:42
int index
Definition: window_spin.h:18
char * format
Definition: window_numb.h:23
#define WINDOW_CLS_SPIN
Definition: window.h:15
int count
Definition: window_spin.h:17
#define COLOR_ORANGE
Definition: guitypes.h:57
#define WINDOW_FLG_CAPTURE
Definition: window.h:29
float step
Definition: window_spin.h:16
float max
Definition: window_spin.h:15
#define WINDOW_FLG_NUMB_FLOAT2INT
Definition: window_numb.h:8
window_init_t * init
Definition: window.h:70
void() window_event_t(void *window, uint8_t event, void *param)
Definition: window.h:58
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
void window_spin_init(window_spin_t *window)
Definition: window_spin.c:12
#define WINDOW_FLG_FOCUSED
Definition: window.h:27
void window_spin_event(window_spin_t *window, uint8_t event, void *param)
Definition: window_spin.c:22
window_numb_t window
Definition: window_spin.h:13
uint32_t color_t
Definition: guitypes.h:62
void() window_init_t(void *window)
Definition: window.h:55
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
uint32_t flg
Definition: window.h:81
void screen_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: screen.c:103
window_t win
Definition: window_numb.h:18
const window_class_numb_t window_class_numb
Definition: window_numb.c:41
#define WINDOW_FLG_INVALID
Definition: window.h:26
uint32_t f_tag
Definition: window.h:98
#define WINDOW_FLG_ENABLED
Definition: window.h:25
static void _window_invalidate(window_t *window)
Definition: window.h:257
#define WINDOW_EVENT_ENC_DN
Definition: window.h:40
struct _window_spin_t window_spin_t