Prusa MINI Firmware overview
display.h
Go to the documentation of this file.
1 //display.h
2 #ifndef _DISPLAY_H
3 #define _DISPLAY_H
4 
5 #include <inttypes.h>
6 #include <stdio.h>
7 
8 #include "guitypes.h"
9 
10 typedef struct _display_t display_t;
11 
19 typedef void(display_draw_char_t)(point_ui16_t pt, char chr, font_t *pf, color_t clr0, color_t clr1);
20 typedef void(display_draw_text_t)(rect_ui16_t rc, const char *str, font_t *pf, color_t clr0, color_t clr1);
21 typedef void(display_draw_icon_t)(point_ui16_t pt, uint16_t id_res, color_t clr0, uint8_t rop);
22 typedef void(display_draw_png_t)(point_ui16_t pt, FILE *pf);
23 
24 typedef struct _display_t {
25  uint16_t w;
26  uint16_t h;
38 } display_t;
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif //__cplusplus
43 
44 extern display_t *display;
45 
46 #ifdef __cplusplus
47 }
48 #endif //__cplusplus
49 
50 #endif //_DISPLAY_H
_display_t::h
uint16_t h
Definition: display.h:26
display_init_t
void() display_init_t(void)
Definition: display.h:12
_font_t
Definition: guitypes.h:76
display_t
struct _display_t display_t
Definition: display.h:10
_display_t::draw_char
display_draw_char_t * draw_char
Definition: display.h:34
display_draw_rect_t
void() display_draw_rect_t(rect_ui16_t rc, color_t clr)
Definition: display.h:17
display_draw_char_t
void() display_draw_char_t(point_ui16_t pt, char chr, font_t *pf, color_t clr0, color_t clr1)
Definition: display.h:19
_display_t::draw_text
display_draw_text_t * draw_text
Definition: display.h:35
display_draw_line_t
void() display_draw_line_t(point_ui16_t pt, point_ui16_t pt1, color_t clr)
Definition: display.h:16
_point_ui16_t
Definition: guitypes.h:64
display_fill_rect_t
void() display_fill_rect_t(rect_ui16_t rc, color_t clr)
Definition: display.h:18
_display_t::fill_rect
display_fill_rect_t * fill_rect
Definition: display.h:33
display_draw_png_t
void() display_draw_png_t(point_ui16_t pt, FILE *pf)
Definition: display.h:22
guitypes.h
_display_t
Definition: display.h:24
void
void
Definition: png.h:1083
_display_t::init
display_init_t * init
Definition: display.h:27
_display_t::draw_png
display_draw_png_t * draw_png
Definition: display.h:37
display_draw_icon_t
void() display_draw_icon_t(point_ui16_t pt, uint16_t id_res, color_t clr0, uint8_t rop)
Definition: display.h:21
_display_t::set_pixel
display_set_pixel_t * set_pixel
Definition: display.h:30
_display_t::clear
display_clear_t * clear
Definition: display.h:29
_rect_ui16_t
Definition: guitypes.h:69
uint8_t
const uint8_t[]
Definition: 404_html.c:3
display
display_t * display
Definition: display.c:6
display_draw_text_t
void() display_draw_text_t(rect_ui16_t rc, const char *str, font_t *pf, color_t clr0, color_t clr1)
Definition: display.h:20
_display_t::draw_rect
display_draw_rect_t * draw_rect
Definition: display.h:32
display_set_pixel_t
void() display_set_pixel_t(point_ui16_t pt, color_t clr)
Definition: display.h:15
_display_t::draw_icon
display_draw_icon_t * draw_icon
Definition: display.h:36
display_done_t
void() display_done_t(void)
Definition: display.h:13
_display_t::w
uint16_t w
Definition: display.h:25
color_t
uint32_t color_t
Definition: guitypes.h:62
display_clear_t
void() display_clear_t(color_t clr)
Definition: display.h:14
_display_t::draw_line
display_draw_line_t * draw_line
Definition: display.h:31
_display_t::done
display_done_t * done
Definition: display.h:28