ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
Text.hpp File Reference

A read-only text node backed by UIContext::textEngine. More...

#include "Common.hpp"
#include "Layout.hpp"

Go to the source code of this file.

Classes

class  ZenitUI::UI::Text
 A read-only text node. More...

Functions

std::shared_ptr< Text > ZenitUI::UI::Label (std::string t)
 Convenience factory: a Text node.

Detailed Description

A read-only text node backed by UIContext::textEngine.

Wrapping, ellipsis truncation, shaping, and batched rendering are delegated to TextEngine. Ellipsis (text-overflow: ellipsis) is applied at draw time only, leaving the layout box unaffected.