diff options
Diffstat (limited to 'include/gui/Entry.hpp')
-rw-r--r-- | include/gui/Entry.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gui/Entry.hpp b/include/gui/Entry.hpp index b8ff37a..449a87c 100644 --- a/include/gui/Entry.hpp +++ b/include/gui/Entry.hpp @@ -26,6 +26,8 @@ namespace gsr { // Return false to specify that the string should not be accepted. This reverts the string back to its previous value. // The input can be changed by changing the input parameter and returning true. EntryValidateHandler validate_handler; + + std::function<void(const std::string &text)> on_changed; private: mgl::Text text; float max_width; |