|
Horizon
|
Used wherever a user-editable text is needed. More...
#include <text.hpp>
Public Member Functions | |
| Text (const UUID &uu, const json &j) | |
| Text (const UUID &uu) | |
| UUID | get_uuid () const |
| json | serialize () const |
Public Attributes | |
| UUID | uuid |
| TextOrigin | origin = TextOrigin::CENTER |
| TextData::Font | font = TextData::Font::SIMPLEX |
| Placement | placement |
| std::string | text |
| uint64_t | size = 1.5_mm |
| uint64_t | width = 0 |
| int | layer = 0 |
| std::string | text_override |
| bool | overridden = false |
| When set, the renderer will render text_override instead of text. More... | |
| bool | from_smash = false |
| true if this is the result of a smash operation. More... | |
Used wherever a user-editable text is needed.
| bool horizon::Text::from_smash = false |
true if this is the result of a smash operation.
Used to track it's lifecycle on unsmash.
| bool horizon::Text::overridden = false |
When set, the renderer will render text_override instead of text.
Used for Text that are the result of a smash operation.