const char * GetText() const
Returns the current text value displayed.
virtual bool ValidateNewText(const char *text)
void SetPlaceholderText(const char *text)
Sets the text to display if the text value is empty.
DrawResult Draw(const DrawContext &context) override
void SetOnValueChanged(std::function< void(const char *)> on_value_changed)
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
const char * GetPlaceholderText() const
Returns the text displayed if the text value is empty.
void SetText(const char *text)
void SetOnTextChanged(std::function< void(const char *)> on_text_changed)