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

#include <Font6x13.hh>

Inheritance diagram for Font6x13:
Inheritance graph
Collaboration diagram for Font6x13:
Collaboration graph

Public Member Functions

 Font6x13 ()
 
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

Font size 6x13.

Definition at line 31 of file Font6x13.hh.

Constructor & Destructor Documentation

Font6x13::Font6x13 ( )
inline

Construct font (6x13) singleton.

Definition at line 36 of file Font6x13.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 files: