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

Wrapping, truncation, and whitespace options for TextEngine::layout. More...

#include <TextEngine.hpp>

Public Attributes

float maxWidth {0.0f}
 Wrapping / ellipsis width in logical px (<= 0 = unbounded).
bool wrap {false}
 Enable soft word/cluster wrapping at maxWidth.
bool ellipsis {false}
 Append ellipsisText when overflowing maxWidth or maxLines.
int maxLines {0}
 Maximum number of visual lines (<= 0 = unlimited).
bool preserveSpaces {false}
 Keep spaces contiguous across soft breaks (for editable fields).
std::string ellipsisText {"..."}
 Suffix used when truncating overflowing lines.

Detailed Description

Wrapping, truncation, and whitespace options for TextEngine::layout.


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