SatCat5
satcat5::gui::Font< T > Class Template Reference

Detailed Description

template<class T>
class satcat5::gui::Font< T >

The Font class maps characters to fixed-size icons.

See also
gui_icons.h, gui::Icon8x8, gui::Icon16x16, gui::Icon32x32. The Font-class template can be specialized for Icon8x8, Icon16x16, or Icon32x32. For now,only ASCII printable characters 0x20 through 0x7E are supported. (UTF-8 tokens outside this range return NULL.)

Definition at line 86 of file gui_icons.h.

#include <gui_icons.h>

Public Member Functions

constexpr Font (const T *data)
 Link the Font to an array of icon objects in ASCII order.
 
const T * icon (char c) const
 Fetch the icon associated with a given character.
 

Protected Attributes

const T *const m_data
 

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