OpenWareLaboratory
|
Public Member Functions | |
void | clear () |
void | clear (int x, int y, int width, int height) |
void | drawChar (uint16_t x, uint16_t y, unsigned char ch, Colour c, Colour bg, uint8_t size) |
void | drawCircle (uint16_t x, uint16_t y, uint16_t r, Colour c) |
void | drawHorizontalLine (int x, int y, int length, Colour c) |
void | drawLine (int x0, int y0, int x1, int y1, Colour c) |
void | drawRectangle (int x, int y, int w, int h, Colour c) |
void | drawRotatedChar (uint16_t x, uint16_t y, unsigned char ch, Colour c, Colour bg, uint8_t size) |
void | drawVerticalLine (int x, int y, int length, Colour c) |
void | fade (uint16_t steps) |
void | fill (Colour c) |
void | fillCircle (uint16_t x, uint16_t y, uint16_t r, Colour c) |
void | fillRectangle (int x, int y, int w, int h, Colour c) |
Colour * | getBuffer () |
int | getHeight () |
Colour | getPixel (unsigned int x, unsigned int y) |
int | getWidth () |
void | invert () |
void | invert (int x, int y, int w, int h) |
void | invertPixel (unsigned int x, unsigned int y) |
void | print (const char *str) |
void | print (float num) |
void | print (int num) |
void | print (int x, int y, const char *text) |
ScreenBuffer (uint16_t w, uint16_t h) | |
void | setBuffer (uint8_t *buffer) |
void | setCursor (uint16_t x, uint16_t y) |
void | setPixel (unsigned int x, unsigned int y, Colour c) |
void | setTextColour (Colour c) |
void | setTextColour (Colour c, Colour b) |
void | setTextSize (uint8_t s) |
void | setTextWrap (bool w) |
void | write (uint8_t c) |
Definition at line 11 of file ScreenBuffer.h.
|
inline |
Definition at line 26 of file ScreenBuffer.h.
|
inline |
Definition at line 47 of file ScreenBuffer.h.
References BLACK, and ScreenBuffer< Colour, BLACK, WHITE >::fill().
|
inline |
Definition at line 51 of file ScreenBuffer.h.
References BLACK, and ScreenBuffer< Colour, BLACK, WHITE >::fillRectangle().
|
inline |
Definition at line 248 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::fillRectangle(), and ScreenBuffer< Colour, BLACK, WHITE >::setPixel().
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::write().
|
inline |
Definition at line 193 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::setPixel().
|
inline |
Definition at line 83 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::setPixel().
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::drawRectangle(), ScreenBuffer< Colour, BLACK, WHITE >::fillCircle(), and ScreenBuffer< Colour, BLACK, WHITE >::fillRectangle().
|
inline |
Definition at line 109 of file ScreenBuffer.h.
References abs, and ScreenBuffer< Colour, BLACK, WHITE >::setPixel().
|
inline |
Definition at line 99 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::drawHorizontalLine(), and ScreenBuffer< Colour, BLACK, WHITE >::drawVerticalLine().
|
inline |
Definition at line 284 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::fillRectangle(), and ScreenBuffer< Colour, BLACK, WHITE >::setPixel().
|
inline |
Definition at line 75 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::setPixel().
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::drawRectangle().
void MonochromeScreenBuffer::fade | ( | uint16_t | steps | ) |
Definition at line 54 of file ColourScreenPatch.cpp.
void MonochromeScreenBuffer::fill | ( | Colour | c | ) |
Definition at line 63 of file ColourScreenPatch.cpp.
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::clear().
|
inline |
Definition at line 223 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::drawHorizontalLine().
|
inline |
Definition at line 91 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::drawHorizontalLine().
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::clear(), ScreenBuffer< Colour, BLACK, WHITE >::drawChar(), and ScreenBuffer< Colour, BLACK, WHITE >::drawRotatedChar().
|
inline |
Definition at line 39 of file ScreenBuffer.h.
|
inline |
Definition at line 33 of file ScreenBuffer.h.
Colour MonochromeScreenBuffer::getPixel | ( | unsigned int | x, |
unsigned int | y | ||
) |
Definition at line 35 of file ColourScreenPatch.cpp.
|
inline |
Definition at line 30 of file ScreenBuffer.h.
|
inline |
Definition at line 167 of file ScreenBuffer.h.
|
inline |
Definition at line 171 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::invertPixel().
void MonochromeScreenBuffer::invertPixel | ( | unsigned int | x, |
unsigned int | y | ||
) |
Definition at line 48 of file ColourScreenPatch.cpp.
References WHITE.
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::invert().
|
inline |
Definition at line 56 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::write().
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::print().
|
inline |
Definition at line 62 of file ScreenBuffer.h.
References msg_ftoa(), and ScreenBuffer< Colour, BLACK, WHITE >::print().
|
inline |
Definition at line 66 of file ScreenBuffer.h.
References msg_itoa(), and ScreenBuffer< Colour, BLACK, WHITE >::print().
|
inline |
Definition at line 70 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::print(), and ScreenBuffer< Colour, BLACK, WHITE >::setCursor().
|
inline |
Definition at line 36 of file ScreenBuffer.h.
Referenced by onDrawCallback().
|
inline |
Definition at line 143 of file ScreenBuffer.h.
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::print().
void MonochromeScreenBuffer::setPixel | ( | unsigned int | x, |
unsigned int | y, | ||
Colour | c | ||
) |
Definition at line 42 of file ColourScreenPatch.cpp.
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::drawChar(), ScreenBuffer< Colour, BLACK, WHITE >::drawCircle(), ScreenBuffer< Colour, BLACK, WHITE >::drawHorizontalLine(), ScreenBuffer< Colour, BLACK, WHITE >::drawLine(), ScreenBuffer< Colour, BLACK, WHITE >::drawRotatedChar(), and ScreenBuffer< Colour, BLACK, WHITE >::drawVerticalLine().
|
inline |
Definition at line 152 of file ScreenBuffer.h.
|
inline |
Definition at line 158 of file ScreenBuffer.h.
|
inline |
Definition at line 148 of file ScreenBuffer.h.
|
inline |
Definition at line 163 of file ScreenBuffer.h.
|
inline |
Definition at line 177 of file ScreenBuffer.h.
References ScreenBuffer< Colour, BLACK, WHITE >::drawChar().
Referenced by ScreenBuffer< Colour, BLACK, WHITE >::print().