ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::TextLayout Struct Reference

Complete laid-out text block ready for sizing, hit-testing, and rendering. More...

#include <TextEngine.hpp>

Public Attributes

std::vector< TextLine > lines
Vec2 size {0.0f, 0.0f}
FontMetrics metrics {}
std::string ellipsizedText
 Populated with the truncated last line when truncated is true.
bool truncated {false}
bool synthetic {false}
 true when measured via synthetic fallback (no loaded fonts).
TextDirection resolvedDirection {TextDirection::LTR}

Detailed Description

Complete laid-out text block ready for sizing, hit-testing, and rendering.


The documentation for this struct was generated from the following file: