TextFields namespace
#include <GGUI/Public/UIText.h>
Text widgets as they are, for tools, tests, and other widgets.
Functions
- auto Text(const UIContext& context, NodeHandle node) -> std::string
- The text of the text widget
node; empty if it isn't one. - auto Edit(const UIContext& context, NodeHandle node) -> TextEditState*
- The edit state of the text widget
node; null if it isn't one. - void SetText(UIContext& context, NodeHandle node, std::string_view text)
- Replace the text of the text widget
node, without calling its handlers. - auto Text(const WidgetHostBase& host, NodeHandle node) -> std::string
- Text, for a widget working on a text widget it built.
- auto IsField(const WidgetHostBase& host, NodeHandle node) -> bool
- Whether
node, built byhost'swidget, is a text widget. - void SetText(const WidgetHostBase& host, NodeHandle node, std::string_view text)
- SetText, for a widget working on a text widget it built.