Rpi-hw  0.7.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
rpihw::font::base Class Referenceabstract

Generic font. More...

#include <base.hpp>

+ Inheritance diagram for rpihw::font::base:

Public Member Functions

virtual void setSize (uint8_t height)=0
 Sets the font size. More...
 
virtual uint8_t getWidth (uint32_t charcode) const =0
 Returns the width of a character. More...
 
virtual uint8_t getHeight () const =0
 Returns the height of the font.
 
virtual void data (uint32_t charcode, glyph &glyph) const =0
 Returns the data of the character font. More...
 

Detailed Description

Generic font.

Examples:
display/pcd8544.cpp.

Definition at line 50 of file base.hpp.

Member Function Documentation

virtual void rpihw::font::base::data ( uint32_t  charcode,
glyph glyph 
) const
pure virtual

Returns the data of the character font.

Parameters
[in]charcodeThe character code.
[in]glyphThe glyph of the character.

Implemented in rpihw::font::freetype.

virtual uint8_t rpihw::font::base::getWidth ( uint32_t  charcode) const
pure virtual

Returns the width of a character.

Parameters
[in]charcodeThe character code.
Returns
The width of the font.

Implemented in rpihw::font::freetype.

virtual void rpihw::font::base::setSize ( uint8_t  height)
pure virtual

Sets the font size.

Parameters
[in]heightThe height of the font.

Implemented in rpihw::font::freetype.


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