Prusa MINI Firmware overview
|
#include "window.h"
#include "gui.h"
|
int16_t | window_new_id (window_t *window) |
|
window_t * | window_free_id (int16_t id) |
|
window_class_t * | class_ptr (int16_t cls_id) |
|
window_t * | window_ptr (int16_t id) |
|
int16_t | window_id (window_t *ptr) |
|
int16_t | window_register_class (window_class_t *cls) |
|
int16_t | window_create (int16_t cls_id, int16_t id_parent, rect_ui16_t rect) |
|
int16_t | window_create_ptr (int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr) |
|
void | window_destroy (int16_t id) |
|
void | window_destroy_children (int16_t id) |
|
int16_t | window_focused (void) |
|
int16_t | window_capture (void) |
|
int16_t | window_parent (int16_t id) |
|
int16_t | window_prev (int16_t id) |
|
int16_t | window_next (int16_t id) |
|
int16_t | window_prev_enabled (int16_t id) |
|
int16_t | window_next_enabled (int16_t id) |
|
int16_t | window_first_child (int16_t id) |
|
int | window_child_count (int16_t id) |
|
int | window_enabled_child_count (int16_t id) |
|
int | window_is_visible (int16_t id) |
|
int | window_is_enabled (int16_t id) |
|
int | window_is_invalid (int16_t id) |
|
int | window_is_focused (int16_t id) |
|
int | window_is_capture (int16_t id) |
|
void | window_draw (int16_t id) |
|
void | window_draw_children (int16_t id) |
|
void | window_validate (int16_t id) |
|
void | window_invalidate (int16_t id) |
|
void | window_validate_children (int16_t id) |
|
void | window_invalidate_children (int16_t id) |
|
void | window_set_tag (int16_t id, uint8_t tag) |
|
uint8_t | window_get_tag (int16_t id) |
|
void | window_set_text (int16_t id, const char *text) |
|
char * | window_get_text (int16_t id) |
|
void | window_set_value (int16_t id, float value) |
|
float | window_get_value (int16_t id) |
|
void | window_set_format (int16_t id, const char *format) |
|
char * | window_get_format (int16_t id) |
|
void | window_set_color_back (int16_t id, color_t clr) |
|
color_t | window_get_color_back (int16_t id) |
|
void | window_set_color_text (int16_t id, color_t clr) |
|
color_t | window_get_color_text (int16_t id) |
|
void | window_set_focus (int16_t id) |
|
void | window_set_capture (int16_t id) |
|
void | window_enable (int16_t id) |
|
void | window_disable (int16_t id) |
|
void | window_show (int16_t id) |
|
void | window_hide (int16_t id) |
|
void | window_set_padding (int16_t id, padding_ui8_t padding) |
|
void | window_set_alignment (int16_t id, uint8_t alignment) |
|
void | window_set_item_count (int16_t id, int count) |
|
int | window_get_item_count (int16_t id) |
|
void | window_set_item_index (int16_t id, int index) |
|
int | window_get_item_index (int16_t id) |
|
void | window_set_top_index (int16_t id, int top_index) |
|
int | window_get_top_index (int16_t id) |
|
void | window_set_icon_id (int16_t id, uint16_t id_res) |
|
uint16_t | window_get_icon_id (int16_t id) |
|
void | window_set_min (int16_t id, float min) |
|
float | window_get_min (int16_t id) |
|
void | window_set_max (int16_t id, float max) |
|
float | window_get_max (int16_t id) |
|
void | window_set_step (int16_t id, float step) |
|
float | window_get_step (int16_t id) |
|
void | window_set_min_max (int16_t id, float min, float max) |
|
void | window_set_min_max_step (int16_t id, float min, float max, float step) |
|
void | window_set_item_callback (int16_t id, window_list_item_t *fnc) |
|
void | window_dispatch_event (window_t *window, uint8_t event, void *param) |
|
◆ WINDOW_MAX_WINDOWS
#define WINDOW_MAX_WINDOWS 64 |
◆ WINDOW_MAX_USERCLS
#define WINDOW_MAX_USERCLS 10 |
◆ window_new_id()
int16_t window_new_id |
( |
window_t * |
window | ) |
|
◆ window_free_id()
◆ class_ptr()
◆ window_ptr()
◆ window_id()
87 return (ptr) ? ptr->
id : -1;
◆ window_register_class()
◆ window_create()
int16_t window_create |
( |
int16_t |
cls_id, |
|
|
int16_t |
id_parent, |
|
|
rect_ui16_t |
rect |
|
) |
| |
◆ window_create_ptr()
int16_t window_create_ptr |
( |
int16_t |
cls_id, |
|
|
int16_t |
id_parent, |
|
|
rect_ui16_t |
rect, |
|
|
void * |
ptr |
|
) |
| |
126 if (win && (ptr == 0))
◆ window_destroy()
void window_destroy |
( |
int16_t |
id | ) |
|
◆ window_destroy_children()
void window_destroy_children |
( |
int16_t |
id | ) |
|
◆ window_focused()
int16_t window_focused |
( |
void |
| ) |
|
◆ window_capture()
int16_t window_capture |
( |
void |
| ) |
|
◆ window_parent()
int16_t window_parent |
( |
int16_t |
id | ) |
|
◆ window_prev()
int16_t window_prev |
( |
int16_t |
id | ) |
|
◆ window_next()
int16_t window_next |
( |
int16_t |
id | ) |
|
◆ window_prev_enabled()
int16_t window_prev_enabled |
( |
int16_t |
id | ) |
|
◆ window_next_enabled()
int16_t window_next_enabled |
( |
int16_t |
id | ) |
|
◆ window_first_child()
int16_t window_first_child |
( |
int16_t |
id | ) |
|
219 int16_t id_parent = id;
◆ window_child_count()
int window_child_count |
( |
int16_t |
id | ) |
|
◆ window_enabled_child_count()
int window_enabled_child_count |
( |
int16_t |
id | ) |
|
◆ window_is_visible()
int window_is_visible |
( |
int16_t |
id | ) |
|
◆ window_is_enabled()
int window_is_enabled |
( |
int16_t |
id | ) |
|
◆ window_is_invalid()
int window_is_invalid |
( |
int16_t |
id | ) |
|
◆ window_is_focused()
int window_is_focused |
( |
int16_t |
id | ) |
|
◆ window_is_capture()
int window_is_capture |
( |
int16_t |
id | ) |
|
◆ window_draw()
void window_draw |
( |
int16_t |
id | ) |
|
◆ window_draw_children()
void window_draw_children |
( |
int16_t |
id | ) |
|
◆ window_validate()
void window_validate |
( |
int16_t |
id | ) |
|
◆ window_invalidate()
void window_invalidate |
( |
int16_t |
id | ) |
|
◆ window_validate_children()
void window_validate_children |
( |
int16_t |
id | ) |
|
◆ window_invalidate_children()
void window_invalidate_children |
( |
int16_t |
id | ) |
|
◆ window_set_tag()
◆ window_get_tag()
uint8_t window_get_tag |
( |
int16_t |
id | ) |
|
◆ window_set_text()
void window_set_text |
( |
int16_t |
id, |
|
|
const char * |
text |
|
) |
| |
◆ window_get_text()
char* window_get_text |
( |
int16_t |
id | ) |
|
◆ window_set_value()
void window_set_value |
( |
int16_t |
id, |
|
|
float |
value |
|
) |
| |
◆ window_get_value()
float window_get_value |
( |
int16_t |
id | ) |
|
◆ window_set_format()
void window_set_format |
( |
int16_t |
id, |
|
|
const char * |
format |
|
) |
| |
◆ window_get_format()
char* window_get_format |
( |
int16_t |
id | ) |
|
◆ window_set_color_back()
◆ window_get_color_back()
color_t window_get_color_back |
( |
int16_t |
id | ) |
|
◆ window_set_color_text()
◆ window_get_color_text()
color_t window_get_color_text |
( |
int16_t |
id | ) |
|
◆ window_set_focus()
void window_set_focus |
( |
int16_t |
id | ) |
|
◆ window_set_capture()
void window_set_capture |
( |
int16_t |
id | ) |
|
◆ window_enable()
void window_enable |
( |
int16_t |
id | ) |
|
◆ window_disable()
void window_disable |
( |
int16_t |
id | ) |
|
◆ window_show()
void window_show |
( |
int16_t |
id | ) |
|
◆ window_hide()
void window_hide |
( |
int16_t |
id | ) |
|
◆ window_set_padding()
◆ window_set_alignment()
void window_set_alignment |
( |
int16_t |
id, |
|
|
uint8_t |
alignment |
|
) |
| |
◆ window_set_item_count()
void window_set_item_count |
( |
int16_t |
id, |
|
|
int |
count |
|
) |
| |
◆ window_get_item_count()
int window_get_item_count |
( |
int16_t |
id | ) |
|
◆ window_set_item_index()
void window_set_item_index |
( |
int16_t |
id, |
|
|
int |
index |
|
) |
| |
◆ window_get_item_index()
int window_get_item_index |
( |
int16_t |
id | ) |
|
◆ window_set_top_index()
void window_set_top_index |
( |
int16_t |
id, |
|
|
int |
top_index |
|
) |
| |
◆ window_get_top_index()
int window_get_top_index |
( |
int16_t |
id | ) |
|
◆ window_set_icon_id()
void window_set_icon_id |
( |
int16_t |
id, |
|
|
uint16_t |
id_res |
|
) |
| |
◆ window_get_icon_id()
uint16_t window_get_icon_id |
( |
int16_t |
id | ) |
|
◆ window_set_min()
void window_set_min |
( |
int16_t |
id, |
|
|
float |
min |
|
) |
| |
◆ window_get_min()
float window_get_min |
( |
int16_t |
id | ) |
|
◆ window_set_max()
void window_set_max |
( |
int16_t |
id, |
|
|
float |
max |
|
) |
| |
◆ window_get_max()
float window_get_max |
( |
int16_t |
id | ) |
|
◆ window_set_step()
void window_set_step |
( |
int16_t |
id, |
|
|
float |
step |
|
) |
| |
◆ window_get_step()
float window_get_step |
( |
int16_t |
id | ) |
|
◆ window_set_min_max()
void window_set_min_max |
( |
int16_t |
id, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
◆ window_set_min_max_step()
void window_set_min_max_step |
( |
int16_t |
id, |
|
|
float |
min, |
|
|
float |
max, |
|
|
float |
step |
|
) |
| |
◆ window_set_item_callback()
◆ window_dispatch_event()
798 if (window && window->
event)
799 window->
event(window, event, param);
◆ displayTaskHandle
◆ window_0
◆ window_1
◆ windows
◆ window_count
uint16_t window_count = 0 |
◆ window_focused_ptr
◆ window_capture_ptr
◆ window_classes
◆ window_class_count
◆ window_user_classes
◆ window_user_class_count
uint16_t window_user_class_count = 0 |
void gui_timers_delete_by_window_id(int16_t win_id)
Definition: gui_timer.c:91
#define WINDOW_MAX_USERCLS
Definition: window.c:8
#define WINDOW_EVENT_CAPT_0
Definition: window.h:44
window_t * window_ptr(int16_t id)
Definition: window.c:82
Definition: window_text.h:15
int window_is_enabled(int16_t id)
Definition: window.c:257
#define WINDOW_EVENT_CAPT_1
Definition: window.h:45
uint16_t size
Definition: window.h:69
int16_t id_parent
Definition: window.h:78
void gui_free(void *ptr)
Definition: gui.c:39
int16_t cls_id
Definition: window.h:68
uint32_t f_enabled
Definition: window.h:86
Definition: window_frame.h:18
const window_class_msgbox_t window_class_msgbox
Definition: window_msgbox.c:249
Definition: window_spin.h:12
uint32_t f_timer
Definition: window.h:94
#define WINDOW_CLS_NUMB
Definition: window.h:11
const window_class_term_t window_class_term
Definition: window_term.c:53
void * gui_malloc(unsigned int size)
Definition: gui.c:35
window_t * window_free_id(int16_t id)
Definition: window.c:64
#define WINDOW_CLS_USER
Definition: window.h:21
#define WINDOW_FLG_VISIBLE
Definition: window.h:24
#define max(a, b)
Definition: wiring_constants.h:40
window_draw_t * draw
Definition: window.h:72
void window_destroy(int16_t id)
Definition: window.c:132
window_t * window_0
Definition: window.c:12
Definition: window_icon.h:11
void window_destroy_children(int16_t id)
Definition: window.c:157
int16_t window_first_child(int16_t id)
Definition: window.c:218
window_done_t * done
Definition: window.h:71
window_t * window_focused_ptr
Definition: window.c:19
int16_t id
Definition: window.h:79
uint32_t f_invalid
Definition: window.h:87
#define WINDOW_CLS_LIST
Definition: window.h:13
Definition: window_numb.h:17
uint32_t f_parent
Definition: window.h:95
void gui_invalidate(void)
Definition: gui.c:66
#define min(a, b)
Definition: wiring_constants.h:36
#define WINDOW_CLS_SPIN
Definition: window.h:15
window_class_t * window_user_classes[WINDOW_MAX_USERCLS]
Definition: window.c:40
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
static int rect_empty_ui16(rect_ui16_t rc)
Definition: guitypes.h:177
rect_ui16_t rect_intersect_ui16(rect_ui16_t rc, rect_ui16_t rc1)
Definition: guitypes.c:37
#define WINDOW_EVENT_FOCUS0
Definition: window.h:42
const window_class_spin_t window_class_spin
Definition: window_spin.c:58
window_event_t * event
Definition: window.h:73
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
#define WINDOW_CLS_FRAME
Definition: window.h:9
const window_class_icon_t window_class_icon
Definition: window_icon.c:29
#define WINDOW_CLS_MENU
Definition: window.h:18
const window_class_frame_t window_class_frame
Definition: window_frame.c:65
#define WINDOW_EVENT_FOCUS1
Definition: window.h:43
const window_class_text_t window_class_text
Definition: window_text.c:27
window_init_t * init
Definition: window.h:70
int16_t window_prev(int16_t id)
Definition: window.c:180
uint16_t window_count
Definition: window.c:17
rect_ui16_t rect
Definition: window.h:101
uint16_t window_user_class_count
Definition: window.c:42
#define WINDOW_CLS_ICON
Definition: window.h:12
uint32_t f_capture
Definition: window.h:90
#define WINDOW_CLS_TEXT
Definition: window.h:10
uint32_t f_visible
Definition: window.h:85
int16_t window_next(int16_t id)
Definition: window.c:192
const window_class_list_t window_class_list
Definition: window_list.c:149
#define WINDOW_MAX_WINDOWS
Definition: window.c:6
window_event_t * event
Definition: window.h:102
#define COLOR_BLACK
Definition: guitypes.h:40
int16_t window_new_id(window_t *window)
Definition: window.c:44
window_t * window_capture_ptr
Definition: window.c:21
uint32_t f_focused
Definition: window.h:88
const window_class_progress_t window_class_progress
Definition: window_progress.c:61
window_class_t * class_ptr(int16_t cls_id)
Definition: window.c:73
int
Definition: createSpeedLookupTable.py:15
window_t * window_1
Definition: window.c:14
const uint16_t window_class_count
Definition: window.c:38
window_t * windows[WINDOW_MAX_WINDOWS]
Definition: window.c:16
#define WINDOW_FLG_FREEMEM
Definition: window.h:31
Definition: window_list.h:15
const window_class_t * window_classes[]
Definition: window.c:23
uint32_t flg
Definition: window.h:81
Definition: window_progress.h:15
window_class_t * cls
Definition: window.h:77
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
static void _window_invalidate(window_t *window)
Definition: window.h:257
uint32_t f_freemem
Definition: window.h:93