AUI Framework
develop
Cross-platform base for C++ UI apps
|
Helps mapping prerendered string with positions. More...
#include <AUI/Render/ATextLayoutHelper.h>
Classes | |
struct | Boundary |
Public Types | |
using | Line = AVector<Boundary> |
Single line of symbols. | |
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 |
Helps mapping prerendered string with positions.
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