COSA
An Object-Oriented Platform for Arduino Programming
|
#include <Canvas.hh>
Public Member Functions | |
Context (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 | |
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... | |
Drawing context; canvas, pen and text color. Font and text scale.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |