Horizon
Public Member Functions | Public Attributes | List of all members
horizon::Text Class Reference

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...
 

Detailed Description

Used wherever a user-editable text is needed.

Member Data Documentation

◆ from_smash

bool horizon::Text::from_smash = false

true if this is the result of a smash operation.

Used to track it's lifecycle on unsmash.

◆ overridden

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.


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