Prusa MINI Firmware overview
display_helper.h
Go to the documentation of this file.
1 //helper.h
2 #ifndef _HELPER_H
3 #define _HELPER_H
4 
5 #include "guitypes.h"
6 
7 #define RENDER_FLG_ALIGN 0x00ff // alignment mask (ALIGN_xxx)
8 #define RENDER_FLG_ROPFN 0x0f00 // raster operation function mask (ROPFN_xxx << 8)
9 #define RENDER_FLG_WORDB 0x1000 // multiline text
10 #define RENDER_FLG(a, r) (a | r << 8) // render flag macro (ALIGN and ROPFN)
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif //__cplusplus
15 
16 extern 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);
17 
18 extern void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags);
19 
20 #ifdef __cplusplus
21 }
22 #endif //__cplusplus
23 
24 #endif //_HELPER_H
_font_t
Definition: guitypes.h:76
guitypes.h
_padding_ui8_t
Definition: guitypes.h:86
_rect_ui16_t
Definition: guitypes.h:69
render_text_align
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
color_t
uint32_t color_t
Definition: guitypes.h:62
render_icon_align
void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags)
Definition: display_helper.c:55