COSA
An Object-Oriented Platform for Arduino Programming
Font::Glyph Class Reference

#include <Font.hh>

Collaboration diagram for Font::Glyph:
Collaboration graph

Public Member Functions

 Glyph (Font *font, char c= ' ')
 
void begin (char c)
 
uint8_t next ()
 

Protected Attributes

Fontm_font
 
char m_char
 
uint8_t m_offset
 
uint8_t m_flags
 
uint8_t * m_bitset
 
uint8_t * m_bitmap
 
uint8_t m_next
 

Detailed Description

Display a character. Used in the form: Font::Glyph glyph(font, character); for (uint16_t i = 0; i < HEIGHT; i += 8) { for (uint16_t j = 0; j < WIDTH; j++) { uint8_t bits = glyph.next(); // display bits } }

Definition at line 108 of file Font.hh.

Constructor & Destructor Documentation

Font::Glyph::Glyph ( Font font,
char  c = ' ' 
)
inline

Definition at line 110 of file Font.hh.

Member Function Documentation

void Font::Glyph::begin ( char  c)

Begin character.

Parameters
[in]ccharacter.

Definition at line 63 of file Font.cpp.

uint8_t Font::Glyph::next ( )

Get next byte.

Returns
byte.

Definition at line 110 of file Font.cpp.

Member Data Documentation

uint8_t* Font::Glyph::m_bitmap
protected

Definition at line 137 of file Font.hh.

uint8_t* Font::Glyph::m_bitset
protected

Definition at line 136 of file Font.hh.

char Font::Glyph::m_char
protected

Definition at line 133 of file Font.hh.

uint8_t Font::Glyph::m_flags
protected

Definition at line 135 of file Font.hh.

Font* Font::Glyph::m_font
protected

Definition at line 132 of file Font.hh.

uint8_t Font::Glyph::m_next
protected

Definition at line 138 of file Font.hh.

uint8_t Font::Glyph::m_offset
protected

Definition at line 134 of file Font.hh.


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