|
Lamp-Da 0.1
A compact lantern project
|
Define a text display utility. More...
Go to the source code of this file.
Namespaces | |
| namespace | lampda |
| Program scope. | |
| namespace | lampda::modes |
| Contains basic interface types to implement custom user modes. | |
| namespace | lampda::modes::draw::text |
| Text display utility. | |
Typedefs | |
| using | lampda::modes::draw::text::LampTy = hardware::LampTy |
Functions | |
| std::pair< const IFont &, float > | lampda::modes::draw::text::__private::font_from_scale (const float scale) |
| get a font from a [0; 1] scale | |
| std::pair< bool, uint8_t > | lampda::modes::draw::text::__private::display_letter (const char letter, const int16_t startXIndex, const int16_t startYIndex, const IFont &font, const float scale, const uint32_t color, LampTy &lamp) |
| Display a single character. | |
Variables | |
| static const SmallFont | lampda::modes::draw::text::__private::smallFont |
| static const BigFont | lampda::modes::draw::text::__private::bigFont |
Define a text display utility.
| std::pair< bool, uint8_t > lampda::modes::draw::text::__private::display_letter | ( | const char | letter, |
| const int16_t | startXIndex, | ||
| const int16_t | startYIndex, | ||
| const IFont & | font, | ||
| const float | scale, | ||
| const uint32_t | color, | ||
| LampTy & | lamp | ||
| ) |
Display a single character.
| [in] | letter | |
| [in] | startXIndex | width at which the text starts, in lamp coordinates |
| [in] | startYIndex | height at which the text starts, in lamp coordinates |
| [in] | font | The font to use to draw this character |
| [in] | scale | Scale of the letter |
| [in] | color | the color to draw the character in |