COSA
An Object-Oriented Platform for Arduino Programming
|
#include <Canvas.hh>
Public Member Functions | |
Element (Canvas *canvas, Font *font=(Font *)&system5x7) | |
color16_t | get_canvas_color () const |
color16_t | set_canvas_color (color16_t color) |
color16_t | get_pen_color () const |
color16_t | set_pen_color (color16_t color) |
color16_t | get_text_color () const |
color16_t | set_text_color (color16_t color) |
Font * | get_text_font () const |
Font * | set_text_font (Font *font) |
uint8_t | get_text_scale () const |
uint8_t | set_text_scale (uint8_t scale) |
void | get_cursor (uint16_t &x, uint16_t &y) const |
void | set_cursor (uint16_t x, uint16_t y) |
void | move_cursor (int16_t dx, int16_t dy) |
Protected Attributes | |
Canvas * | m_canvas |
color16_t | m_pen_color |
Current foreground color. More... | |
color16_t | m_canvas_color |
Current background color. More... | |
color16_t | m_text_color |
Current text color. More... | |
uint8_t | m_text_scale |
Current text scale. More... | |
Font * | m_font |
Current font. More... | |
pos16_t | m_cursor |
Current cursor position. More... | |
Canvas drawing elements; base class for larger drawing structure that requires a drawing context. See Textbox() for an example.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |