AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ATextLayoutHelper Class Reference

Helps mapping prerendered string with positions.

#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
 

Member Typedef Documentation#

◆ Line#

Actual size of line is +1 larger than symbol count; to expose last character's right bondary