diff options
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r-- | include/SearchBar.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index e986368..7a6c483 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -12,6 +12,8 @@ namespace QuickMedia { // Return true to consume the search (clear the search field) using TextSubmitCallback = std::function<bool(const sf::String &text)>; + using TextBeginTypingCallback = std::function<void()>; + class SearchBar { public: SearchBar(sf::Font &font, sf::Texture &plugin_logo); @@ -28,6 +30,7 @@ namespace QuickMedia { TextUpdateCallback onTextUpdateCallback; TextSubmitCallback onTextSubmitCallback; + TextBeginTypingCallback onTextBeginTypingCallback; int text_autosearch_delay; private: sf::Text text; |