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

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
 

Detailed Description

Helps mapping prerendered string with positions.

Member Typedef Documentation

◆ Line

Single line of symbols.

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


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