void SetText(const char *text)
Definition: TextEdit.cpp:76
const char * GetText() const
Returns the current text value displayed.
Definition: TextEdit.cpp:74
const char * GetPlaceholderText() const
Returns the text displayed if the text value is empty.
Definition: TextEdit.cpp:78
void SetOnTextChanged(std::function< void(const char *)> on_text_changed)
Definition: TextEdit.cpp:86
Definition: TextEdit.cpp:57
Size CalcPreferredSize(const Theme &theme) const override
Definition: TextEdit.cpp:98
void SetOnValueChanged(std::function< void(const char *)> on_value_changed)
Definition: TextEdit.cpp:91
virtual bool ValidateNewText(const char *text)
Definition: TextEdit.cpp:96
DrawResult Draw(const DrawContext &context) override
Definition: TextEdit.cpp:104
void SetPlaceholderText(const char *text)
Sets the text to display if the text value is empty.
Definition: TextEdit.cpp:82
TextEdit()
Definition: TextEdit.cpp:65
~TextEdit()
Definition: TextEdit.cpp:72
Definition: TextEdit.h:37