|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Key of the size cache of MeasureText: everything a measured size is looked up by. More...
#include <headers/guillaume/systems/measure_text.hpp>
Public Member Functions | |
| bool | operator== (const MeasureTextCacheKey &other) const |
| Compare two keys field by field. | |
| bool | operator!= (const MeasureTextCacheKey &other) const |
| Negation of operator==. | |
| bool | operator< (const MeasureTextCacheKey &other) const |
| Order two keys by content, then font size, then color, then font weight. | |
Public Attributes | |
| std::string | content |
| The string that was measured. | |
| float | fontSize |
| Font size the string was measured at. | |
| utility::graphic::Color32Bit | color |
| theme::FontWeight | fontWeight |
| Font weight, which selects the font file measured with. | |
Key of the size cache of MeasureText: everything a measured size is looked up by.
Two texts with equal keys share one measurement. The ordering operator exists so the key can be used in the ordered map of utility::Cache.
Definition at line 50 of file measure_text.hpp.
|
inline |
Negation of operator==.
| other | The key to compare with. |
Definition at line 88 of file measure_text.hpp.
|
inline |
Order two keys by content, then font size, then color, then font weight.
| other | The key to compare with. |
other. Definition at line 99 of file measure_text.hpp.
|
inline |
Compare two keys field by field.
| other | The key to compare with. |
Definition at line 66 of file measure_text.hpp.
| utility::graphic::Color32Bit guillaume::systems::MeasureTextCacheKey::color |
Color of the text. It does not change the size, but two colors give two cache entries
Definition at line 54 of file measure_text.hpp.
| std::string guillaume::systems::MeasureTextCacheKey::content |
The string that was measured.
Definition at line 51 of file measure_text.hpp.
| float guillaume::systems::MeasureTextCacheKey::fontSize |
Font size the string was measured at.
Definition at line 52 of file measure_text.hpp.
| theme::FontWeight guillaume::systems::MeasureTextCacheKey::fontWeight |
Font weight, which selects the font file measured with.
Definition at line 56 of file measure_text.hpp.