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

#include <Segment32x50.hh>

Inheritance diagram for Segment32x50:
Inheritance graph
Collaboration diagram for Segment32x50:
Collaboration graph

Public Member Functions

 Segment32x50 ()
 
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 32x50, segments, fixed with font with numbers only.

Acknowledgements

Font data originates from the UTFT library created by Henning Karlsen.

Definition at line 34 of file Segment32x50.hh.

Constructor & Destructor Documentation

Segment32x50::Segment32x50 ( )
inline

Construct large segment font (32x50) singleton.

Definition at line 39 of file Segment32x50.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: