
GraphicsPrinter implementiert die Zeichenmethoden, die von VESAScreen und schlussendlich VESAGraphics angeboten werden. Mehr ...
#include <object/graphics/printer.h>
Öffentliche Methoden | |
void | init (const unsigned width, const unsigned height, const unsigned pitch) |
void | buffer (void *lfb) |
void | clear () |
bool | valid (const Point &p) const |
unsigned | height () const |
unsigned | width () const |
void | pixel (const Point &p, const Color &color) |
void | line (const Point &start, const Point &end, const Color &color) |
void | rectangle (const Point &top_left, const Point &bottom_right, const Color &color, bool filled) |
void | font (const Font &new_font) |
void | text (const Point &p, const char *string, unsigned len, const Color &color, const Font *font) |
void | image (const Point &p, PNG &image, unsigned width=-1, unsigned height=-1, unsigned offset_x=0, unsigned offset_y=0) |
void | image (const Point &p, const GIMP &image, unsigned width=-1, unsigned height=-1, unsigned offset_x=0, unsigned offset_y=0) |
void | image (const Point &p, const Color *image, unsigned width, unsigned height, unsigned offset_x=0, unsigned offset_y=0) |
void | image (const Point &p, const ColorAlpha *image, unsigned width, unsigned height, unsigned offset_x=0, unsigned offset_y=0) |
Geschützte Methoden | |
bool | check_mode (uint8_t required_COLORDEPTH, uint8_t required_red_offset, uint8_t required_green_offset, uint8_t required_blue_offset, uint8_t required_red_size, uint8_t required_green_size, uint8_t required_blue_size) |
![]() | |
void | init (const unsigned width, const unsigned height, const unsigned pitch) |
void | buffer (void *lfb) |
void | clear () |
Pixel * | get (const unsigned x, const unsigned y) const |
Pixel * | get (const Point &p) const |
void | set (const unsigned x, const unsigned y, const Color &color) |
void | set (const Point &p, const Color &color) |
Weitere Geerbte Elemente | |
![]() | |
static AbstractGraphicsPrinter * | get_mode (uint8_t colordepth, uint8_t offset_red, uint8_t offset_green, uint8_t offset_blue, uint8_t bits_red, uint8_t bits_green, uint8_t bits_blue) |
![]() | |
unsigned | screen_width |
unsigned | screen_height |
GraphicsPrinter implementiert die Zeichenmethoden, die von VESAScreen und schlussendlich VESAGraphics angeboten werden.