Prusa MINI Firmware overview
window_logo.c File Reference
#include "window_logo.h"
#include "config.h"

Functions

void window_logo_init (window_logo_t *window)
 
void window_logo_done (window_logo_t *window)
 
void window_logo_draw (window_logo_t *window)
 

Variables

int16_t WINDOW_CLS_LOGO = 0
 
const window_class_logo_t window_class_logo
 

Function Documentation

◆ window_logo_init()

void window_logo_init ( window_logo_t window)
13  {
15 }

◆ window_logo_done()

void window_logo_done ( window_logo_t window)
17 {}

◆ window_logo_draw()

void window_logo_draw ( window_logo_t window)
19  {
21 
22  {
24 #if PRINTER_TYPE == PRINTER_PRUSA_MINI
25  const char chr = '\2';
26  const uint16_t left = 16;
27  const uint16_t right = 105;
28 #endif
29 
30  // ORIGINAL
31  display->draw_char(point_ui16(left, window->win.rect.y),
32  '\0', logo, window->color_back, COLOR_GRAY);
33  // TYPE
34  display->draw_char(point_ui16(right, window->win.rect.y + 19),
35  chr, logo, window->color_back, COLOR_ORANGE);
36 
37  // PRUSA
38  display->draw_char(point_ui16(left, window->win.rect.y + 19),
39  '\1', logo, window->color_back, COLOR_WHITE);
40 
41 #ifdef _DEBUG
42  // DEBUG
43  display->draw_text(rect_ui16(160, window->win.rect.y, 80, 22),
44  "DEBUG", resource_font(IDR_FNT_NORMAL), window->color_back, COLOR_RED);
45 #endif //_DEBUG
46 
47  window->win.flg &= ~WINDOW_FLG_INVALID;
48  }
49 }
Here is the call graph for this function:

Variable Documentation

◆ WINDOW_CLS_LOGO

int16_t WINDOW_CLS_LOGO = 0

◆ window_class_logo

window_draw_t
void() window_draw_t(void *window)
Definition: window.h:57
window_logo_draw
void window_logo_draw(window_logo_t *window)
Definition: window_logo.c:19
_rect_ui16_t::y
uint16_t y
Definition: guitypes.h:71
_font_t
Definition: guitypes.h:76
_display_t::draw_char
display_draw_char_t * draw_char
Definition: display.h:34
COLOR_WHITE
#define COLOR_WHITE
Definition: guitypes.h:41
COLOR_RED
#define COLOR_RED
Definition: guitypes.h:42
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
_window_logo_t::win
window_t win
Definition: window_logo.h:21
IDR_FNT_NORMAL
#define IDR_FNT_NORMAL
Definition: resource.h:10
WINDOW_CLS_USER
#define WINDOW_CLS_USER
Definition: window.h:21
WINDOW_FLG_VISIBLE
#define WINDOW_FLG_VISIBLE
Definition: window.h:24
_window_logo_t::color_back
color_t color_back
Definition: window_logo.h:23
_display_t::draw_text
display_draw_text_t * draw_text
Definition: display.h:35
window_logo_t
struct _window_logo_t window_logo_t
COLOR_GRAY
#define COLOR_GRAY
Definition: guitypes.h:50
window_done_t
void() window_done_t(void *window)
Definition: window.h:56
COLOR_ORANGE
#define COLOR_ORANGE
Definition: guitypes.h:57
_gui_defaults_t::color_back
color_t color_back
Definition: guitypes.h:107
window_logo_done
void window_logo_done(window_logo_t *window)
Definition: window_logo.c:17
display
display_t * display
Definition: display.c:6
_window_t::rect
rect_ui16_t rect
Definition: window.h:101
window_logo_init
void window_logo_init(window_logo_t *window)
Definition: window_logo.c:13
resource_font
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
window_init_t
void() window_init_t(void *window)
Definition: window.h:55
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
_window_t::flg
uint32_t flg
Definition: window.h:81
IDR_FNT_original_prusa
#define IDR_FNT_original_prusa
Definition: resource.h:14
WINDOW_FLG_INVALID
#define WINDOW_FLG_INVALID
Definition: window.h:26
point_ui16
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154