CheeseBoard
A library for use with the CheeseBoard Cheddar platform
Public Member Functions | List of all members
GfxFont Class Reference

#include <GfxFont.h>

Public Member Functions

 GfxFont (const uint8_t *font, uint8_t fontHeight)
 
uint8_t height ()
 
void use ()
 

Detailed Description

Font object which knows how tall it is in pixels.

Definition at line 8 of file GfxFont.h.

Constructor & Destructor Documentation

◆ GfxFont()

GfxFont::GfxFont ( const uint8_t *  font,
uint8_t  fontHeight 
)

Constructor.

Parameters
fonta pointer to a U8g2lib font defined elsewhere
fontHeighttotal height of font in pixels including whatever usually is "below the line"

Definition at line 5 of file GfxFont.cpp.

Member Function Documentation

◆ height()

uint8_t GfxFont::height ( )

Get height

Returns
Font height in pixels.

Definition at line 11 of file GfxFont.cpp.

Here is the caller graph for this function:

◆ use()

void GfxFont::use ( )

Make this font the current font.

Definition at line 16 of file GfxFont.cpp.

Here is the caller graph for this function:

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