ShowsText class
#include <GGUI/Public/UIText.h>
What a text widget shows: plain text or a TextBuffer.
Constructors, destructors, conversion operators
- ShowsText(std::string_view text)
- Plain text: the widget keeps its own copy.
- ShowsText(const char* text)
- The same, from a C string.
- ShowsText(const std::string& text)
- The same, from a string.
- ShowsText(TextBuffer& buffer)
- The caller's buffer, edited in place.
Public functions
- auto GetPlain() const -> std::string_view
- The plain text; empty when it shows a buffer.
- auto GetBuffer() const -> TextBuffer*
- The caller's buffer; null when it shows plain text.