Definition: TextEdit.h:18
const char * GetText() const
Returns the current text value displayed.
Definition: TextEdit.cpp:52
virtual bool ValidateNewText(const char *text)
Definition: TextEdit.cpp:74
const char * GetPlaceholderText() const
Returns the text displayed if the text value is empty.
Definition: TextEdit.cpp:56
~TextEdit()
Definition: TextEdit.cpp:50
void SetPlaceholderText(const char *text)
Sets the text to display if the text value is empty.
Definition: TextEdit.cpp:60
TextEdit()
Definition: TextEdit.cpp:45
void SetText(const char *text)
Definition: TextEdit.cpp:54
DrawResult Draw(const DrawContext &context) override
Definition: TextEdit.cpp:83
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: TextEdit.cpp:76
void SetOnTextChanged(std::function< void(const char *)> on_text_changed)
Definition: TextEdit.cpp:64
void SetOnValueChanged(std::function< void(const char *)> on_value_changed)
Definition: TextEdit.cpp:69
Definition: TextEdit.cpp:37