GGUI::GGKeptText class

A GGText kept past the call it was given in (a dialog's question, built later): its format and arguments copied. Text() is valid while it lives.

Constructors, destructors, conversion operators

GGKeptText() defaulted
No text.
GGKeptText(const GGText& text) explicit
A copy of text and its arguments.
GGKeptText(const GGKeptText& other)
A copy of other's text and arguments.

Public functions

auto operator=(const GGKeptText& other) -> GGKeptText&
The same, assigned.
auto Text() const -> GGText
The text, to pass to a widget. Valid while this lives and isn't assigned to.
auto IsEmpty() const -> bool
Whether it has no text.