aboutsummaryrefslogtreecommitdiff
path: root/include/gui/Entry.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-05 00:17:03 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-05 00:17:03 +0100
commit07a64ffd954b4273bd6afc7fa03b284c3dced640 (patch)
tree5689dc492cec6d009de3b858fd9dfeb326b0c062 /include/gui/Entry.hpp
parent610fca510d4cafd4ed5851109bca6fe17154c578 (diff)
Add replay ram usage estimation
Diffstat (limited to 'include/gui/Entry.hpp')
-rw-r--r--include/gui/Entry.hpp2
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;