AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ATextLayoutHelper Class Reference

Helps mapping prerendered string with positions. More...

Detailed Description

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
 

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

#include <AUI/Render/ATextLayoutHelper.h>


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