|
Uni20
Asynchronous tensor and runtime library.
|
A sequence of styled text spans and semantic glyph tokens. More...
#include <presentation.hpp>
Public Member Functions | |
| styled_text & | append (semantic_glyph glyph, terminal::TerminalStyle style={}) |
| Append a semantic glyph token. | |
| styled_text & | append (std::string_view text, terminal::TerminalStyle style={}) |
| Append a text span. | |
| styled_text & | append (styled_text const &other) |
| Append all spans from another styled text document. | |
| bool | empty () const noexcept |
| Return whether this document has no spans. | |
| std::vector< presentation_span > const & | spans () const noexcept |
| Return the stored presentation spans. | |
A sequence of styled text spans and semantic glyph tokens.
| styled_text & uni20::presentation::styled_text::append | ( | semantic_glyph | glyph, |
| terminal::TerminalStyle | style = {} |
||
| ) |
Append a semantic glyph token.
| glyph | Semantic glyph to render according to policy. |
| style | Style metadata associated with the glyph. |
| styled_text & uni20::presentation::styled_text::append | ( | std::string_view | text, |
| terminal::TerminalStyle | style = {} |
||
| ) |
Append a text span.
| text | Text payload encoded as UTF-8. |
| style | Style metadata associated with the span. |
| styled_text & uni20::presentation::styled_text::append | ( | styled_text const & | other | ) |
Append all spans from another styled text document.
| other | Styled text document to append. |
|
noexcept |
Return whether this document has no spans.
|
noexcept |
Return the stored presentation spans.