Prusa MINI Firmware overview
|
◆ interval_intersect_ui16()
void interval_intersect_ui16 |
( |
uint16_t * |
p | ) |
|
◆ rect_intersect_ui16()
38 uint16_t x[6] = { rc.
x, rc.
x + rc.
w, rc1.
x, rc1.
x + rc1.
w, 0, 0 };
39 uint16_t y[6] = { rc.
y, rc.
y + rc.
h, rc1.
y, rc1.
y + rc1.
h, 0, 0 };
42 rect_ui16_t rc2 = { x[4], y[4], x[5] - x[4], y[5] - y[4] };
◆ rect_ui16_add_padding_ui8()
51 rect.
y = rc.
y - pad.
top;
◆ rect_ui16_sub_padding_ui8()
◆ rect_align_ui16()
71 rect.
x = ((rc.
x + rc.
w) > rc1.
w) ? ((rc.
x + rc.
w) - rc1.
w) : 0;
75 rect.
x = rc.
x + ((rc.
w - rc1.
w) / 2);
77 rect.
x = (rc.
x > ((rc1.
w - rc.
w) / 2)) ? rc.
x - ((rc1.
w - rc.
w) / 2) : 0;
85 rect.
y = ((rc.
y + rc.
h) > rc1.
h) ? ((rc.
y + rc.
h) - rc1.
h) : 0;
89 rect.
y = rc.
y + ((rc.
h - rc1.
h) / 2);
91 rect.
y = (rc.
y > ((rc1.
h - rc.
h) / 2)) ? rc.
y - ((rc1.
h - rc.
h) / 2) : 0;
◆ font_meas_text()
104 int len = strlen(str);
◆ font_line_chars()
int font_line_chars |
( |
font_t * |
pf, |
|
|
const char * |
str, |
|
|
uint16_t |
line_width |
|
) |
| |
125 int len = strlen(str);
131 while ((w + char_w) <= line_width) {
144 while ((n > 0) && ((str[n] !=
' ') && (str[n] !=
'\n'))) {
149 n = line_width / char_w;
◆ icon_meas()
157 if (memcmp(pi,
"\x89PNG", 4) == 0) {
◆ resource_ptr()
◆ resource_size()
uint16_t resource_size |
( |
uint16_t |
id | ) |
|
◆ resource_fopen()
FILE* resource_fopen |
( |
uint16_t |
id, |
|
|
const char * |
opentype |
|
) |
| |
◆ resource_font()
font_t* resource_font |
( |
uint16_t |
id | ) |
|
◆ resource_table
◆ resource_table_size
const uint16_t resource_table_size |
◆ resource_count
const uint16_t resource_count |
uint16_t y
Definition: guitypes.h:71
uint8_t h
Definition: guitypes.h:78
#define ALIGN_BOTTOM
Definition: guitypes.h:16
uint16_t w
Definition: guitypes.h:72
Definition: guitypes.h:76
uint8_t bottom
Definition: guitypes.h:90
uint8_t top
Definition: guitypes.h:88
uint8_t right
Definition: guitypes.h:89
uint16_t x
Definition: guitypes.h:65
const uint8_t * ptr
Definition: guitypes.h:102
#define ALIGN_RIGHT
Definition: guitypes.h:12
void interval_intersect_ui16(uint16_t *p)
Definition: guitypes.c:7
Definition: guitypes.h:64
uint8_t left
Definition: guitypes.h:87
static uint16_t swap_ui16(uint16_t val)
Definition: guitypes.h:120
uint16_t y
Definition: guitypes.h:66
#define ALIGN_TOP
Definition: guitypes.h:14
uint8_t w
Definition: guitypes.h:77
Definition: guitypes.h:69
#define ALIGN_LEFT
Definition: guitypes.h:10
const uint8_t[]
Definition: 404_html.c:3
uint16_t h
Definition: guitypes.h:73
#define ALIGN_VCENTER
Definition: guitypes.h:15
const uint16_t resource_count
const resource_entry_t resource_table[]
const uint16_t size
Definition: guitypes.h:103
uint16_t x
Definition: guitypes.h:70
#define ALIGN_HCENTER
Definition: guitypes.h:11
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154
static png_bytep size_t size
Definition: pngwrite.c:2170
#define ALIGN_HMASK
Definition: guitypes.h:13
#define ALIGN_VMASK
Definition: guitypes.h:17