COSA
An Object-Oriented Platform for Arduino Programming
FixedNums8x16 Class Reference

#include <FixedNums8x16.hh>

Inheritance diagram for FixedNums8x16:
Inheritance graph
Collaboration diagram for FixedNums8x16:
Collaboration graph

Public Member Functions

 FixedNums8x16 ()
 
bool available (char c)
 
virtual void draw (Canvas *canvas, char c, uint16_t x, uint16_t y, uint8_t scale)
 

Public Attributes

const uint8_t WIDTH
 
const uint8_t HEIGHT
 
const uint8_t SPACING
 
uint8_t LINE_SPACING
 
const uint8_t FIRST
 
const uint8_t LAST
 

Protected Attributes

const uint8_t * m_bitmap
 
const uint8_t m_compression_type
 

Detailed Description

Bitmap font size 8x16, fixed width font with numbers only.

Acknowledgements

Originates from the GLCD library and adapted for Cosa Canvas. The GLCD library was created by Michael Margolis and improved by Bill Perry.

Reference

https://code.google.com/p/glcd-arduino/source/browse/trunk/glcd/fonts/fixednums8x16.h

Definition at line 37 of file FixedNums8x16.hh.

Constructor & Destructor Documentation

FixedNums8x16::FixedNums8x16 ( )
inline

Construct fixed number font singleton.

Definition at line 42 of file FixedNums8x16.hh.

Member Function Documentation

bool Font::available ( char  c)
inlineinherited

Determine if character is available in font.

Parameters
[in]ccharacter.
Returns
true if available.

Definition at line 79 of file Font.hh.

void Font::draw ( Canvas canvas,
char  c,
uint16_t  x,
uint16_t  y,
uint8_t  scale 
)
virtualinherited

Draw character on given canvas.

Parameters
[in]canvas.
[in]ccharacter.
[in]xposition.
[in]yposition.
[in]scale.

Definition at line 24 of file Font.cpp.

Member Data Documentation

const uint8_t Font::FIRST
inherited

Font range.

Definition at line 43 of file Font.hh.

const uint8_t Font::HEIGHT
inherited

Definition at line 36 of file Font.hh.

const uint8_t Font::LAST
inherited

Definition at line 44 of file Font.hh.

uint8_t Font::LINE_SPACING
inherited

Definition at line 38 of file Font.hh.

const uint8_t* Font::m_bitmap
protectedinherited

Font bitmap.

Definition at line 143 of file Font.hh.

const uint8_t Font::m_compression_type
protectedinherited

Compression type.

Definition at line 146 of file Font.hh.

const uint8_t Font::SPACING
inherited

Definition at line 37 of file Font.hh.

const uint8_t Font::WIDTH
inherited

Font size; width/height and character/line spacing.

Definition at line 35 of file Font.hh.


The documentation for this class was generated from the following file: