COSA
An Object-Oriented Platform for Arduino Programming
Canvas.hh File Reference
#include "Cosa/Types.h"
Include dependency graph for Canvas.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Canvas
 
union  Canvas::color16_t
 
struct  Canvas::pos16_t
 
struct  Canvas::rect16_t
 
struct  Canvas::circle16_t
 
class  Canvas::Context
 
class  Canvas::Element
 
class  Canvas::Image
 

Macros

#define CANVAS_BEGIN_SCRIPT(name)   const uint8_t name[] __PROGMEM = {
 
#define CANVAS_CALL_SCRIPT(ix)   Canvas::CALL_SCRIPT, ix,
 
#define CANVAS_SET_CANVAS_COLOR(r, g, b)   Canvas::SET_CANVAS_COLOR, r, g, b,
 
#define CANVAS_SET_PEN_COLOR(r, g, b)   Canvas::SET_PEN_COLOR, r, g, b,
 
#define CANVAS_SET_TEXT_COLOR(r, g, b)   Canvas::SET_TEXT_COLOR, r, g, b,
 
#define CANVAS_SET_TEXT_SCALE(s)   Canvas::SET_TEXT_SCALE, s,
 
#define CANVAS_SET_TEXT_PORT(x, y, w, h)   Canvas::SET_TEXT_PORT, x, y, w, h,
 
#define CANVAS_SET_TEXT_FONT(ix)   Canvas::SET_TEXT_FONT, ix,
 
#define CANVAS_SET_CURSOR(x, y)   Canvas::SET_CURSOR, x, y,
 
#define CANVAS_MOVE_CURSOR(dx, dy)   Canvas::MOVE_CURSOR, (uint8_t) dx, (uint8_t) dy,
 
#define CANVAS_DRAW_BITMAP(ix, w, h, s)   Canvas::DRAW_BITMAP, ix, w, h, s,
 
#define CANVAS_DRAW_ICON(ix, s)   Canvas::DRAW_ICON, ix, s,
 
#define CANVAS_DRAW_PIXEL()   Canvas::DRAW_PIXEL,
 
#define CANVAS_DRAW_LINE(x, y)   Canvas::DRAW_LINE, x, y,
 
#define CANVAS_DRAW_POLY(ix, s)   Canvas::DRAW_POLY, ix, s,
 
#define CANVAS_DRAW_STROKE(ix, s)   Canvas::DRAW_STROKE, ix, s,
 
#define CANVAS_DRAW_RECT(w, h)   Canvas::DRAW_RECT, w, h,
 
#define CANVAS_FILL_RECT(w, h)   Canvas::FILL_RECT, w, h,
 
#define CANVAS_DRAW_ROUNDRECT(w, h, r)   Canvas::DRAW_ROUNDRECT, w, h, r,
 
#define CANVAS_FILL_ROUNDRECT(w, h, r)   Canvas::FILL_ROUNDRECT, w, h, r,
 
#define CANVAS_DRAW_CIRCLE(r)   Canvas::DRAW_CIRCLE, r,
 
#define CANVAS_FILL_CIRCLE(r)   Canvas::FILL_CIRCLE, r,
 
#define CANVAS_DRAW_CHAR(c)   Canvas::DRAW_CHAR, c,
 
#define CANVAS_DRAW_STRING(ix)   Canvas::DRAW_STRING, ix,
 
#define CANVAS_FILL_SCREEN()   Canvas::FILL_SCREEN,
 
#define CANVAS_END_SCRIPT   Canvas::END_SCRIPT };
 

Variables

System5x7 system5x7
 

Detailed Description

Version
1.0

License

Copyright (C) 2012-2015, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

This file is part of the Arduino Che Cosa project.

Definition in file Canvas.hh.

Macro Definition Documentation

#define CANVAS_BEGIN_SCRIPT (   name)    const uint8_t name[] __PROGMEM = {

Script support macro. Generate script code in program memory.

Definition at line 1021 of file Canvas.hh.

#define CANVAS_CALL_SCRIPT (   ix)    Canvas::CALL_SCRIPT, ix,

Definition at line 1022 of file Canvas.hh.

#define CANVAS_DRAW_BITMAP (   ix,
  w,
  h,
 
)    Canvas::DRAW_BITMAP, ix, w, h, s,

Definition at line 1031 of file Canvas.hh.

#define CANVAS_DRAW_CHAR (   c)    Canvas::DRAW_CHAR, c,

Definition at line 1043 of file Canvas.hh.

#define CANVAS_DRAW_CIRCLE (   r)    Canvas::DRAW_CIRCLE, r,

Definition at line 1041 of file Canvas.hh.

#define CANVAS_DRAW_ICON (   ix,
 
)    Canvas::DRAW_ICON, ix, s,

Definition at line 1032 of file Canvas.hh.

#define CANVAS_DRAW_LINE (   x,
 
)    Canvas::DRAW_LINE, x, y,

Definition at line 1034 of file Canvas.hh.

#define CANVAS_DRAW_PIXEL ( )    Canvas::DRAW_PIXEL,

Definition at line 1033 of file Canvas.hh.

#define CANVAS_DRAW_POLY (   ix,
 
)    Canvas::DRAW_POLY, ix, s,

Definition at line 1035 of file Canvas.hh.

#define CANVAS_DRAW_RECT (   w,
 
)    Canvas::DRAW_RECT, w, h,

Definition at line 1037 of file Canvas.hh.

#define CANVAS_DRAW_ROUNDRECT (   w,
  h,
 
)    Canvas::DRAW_ROUNDRECT, w, h, r,

Definition at line 1039 of file Canvas.hh.

#define CANVAS_DRAW_STRING (   ix)    Canvas::DRAW_STRING, ix,

Definition at line 1044 of file Canvas.hh.

#define CANVAS_DRAW_STROKE (   ix,
 
)    Canvas::DRAW_STROKE, ix, s,

Definition at line 1036 of file Canvas.hh.

#define CANVAS_END_SCRIPT   Canvas::END_SCRIPT };

Definition at line 1046 of file Canvas.hh.

#define CANVAS_FILL_CIRCLE (   r)    Canvas::FILL_CIRCLE, r,

Definition at line 1042 of file Canvas.hh.

#define CANVAS_FILL_RECT (   w,
 
)    Canvas::FILL_RECT, w, h,

Definition at line 1038 of file Canvas.hh.

#define CANVAS_FILL_ROUNDRECT (   w,
  h,
 
)    Canvas::FILL_ROUNDRECT, w, h, r,

Definition at line 1040 of file Canvas.hh.

#define CANVAS_FILL_SCREEN ( )    Canvas::FILL_SCREEN,

Definition at line 1045 of file Canvas.hh.

#define CANVAS_MOVE_CURSOR (   dx,
  dy 
)    Canvas::MOVE_CURSOR, (uint8_t) dx, (uint8_t) dy,

Definition at line 1030 of file Canvas.hh.

#define CANVAS_SET_CANVAS_COLOR (   r,
  g,
 
)    Canvas::SET_CANVAS_COLOR, r, g, b,

Definition at line 1023 of file Canvas.hh.

#define CANVAS_SET_CURSOR (   x,
 
)    Canvas::SET_CURSOR, x, y,

Definition at line 1029 of file Canvas.hh.

#define CANVAS_SET_PEN_COLOR (   r,
  g,
 
)    Canvas::SET_PEN_COLOR, r, g, b,

Definition at line 1024 of file Canvas.hh.

#define CANVAS_SET_TEXT_COLOR (   r,
  g,
 
)    Canvas::SET_TEXT_COLOR, r, g, b,

Definition at line 1025 of file Canvas.hh.

#define CANVAS_SET_TEXT_FONT (   ix)    Canvas::SET_TEXT_FONT, ix,

Definition at line 1028 of file Canvas.hh.

#define CANVAS_SET_TEXT_PORT (   x,
  y,
  w,
 
)    Canvas::SET_TEXT_PORT, x, y, w, h,

Definition at line 1027 of file Canvas.hh.

#define CANVAS_SET_TEXT_SCALE (   s)    Canvas::SET_TEXT_SCALE, s,

Definition at line 1026 of file Canvas.hh.

Variable Documentation

System5x7 system5x7

Definition at line 24 of file System5x7.cpp.