AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Helps mapping prerendered string with positions. More...
Helps mapping prerendered string with positions.
Classes | |
struct | Boundary |
Public Types | |
using | Line = AVector< Boundary > |
Single line of symbols. More... | |
using | Symbols = AVector< Line > |
Public Member Functions | |
ATextLayoutHelper (Symbols symbols) | |
void | setSymbols (Symbols symbols) |
AOptional< glm::ivec2 > | indexToPos (size_t line, size_t column) |
size_t | posToIndexFixedLineHeight (const glm::ivec2 &position, const AFontStyle &font) const |
using ATextLayoutHelper::Line = AVector<Boundary> |
Single line of symbols.
Actual size of line is +1 larger than symbol count; to expose last character's right bondary
#include <AUI/Render/ATextLayoutHelper.h>