diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-11 21:35:37 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-13 13:13:01 +0200 |
commit | 77ed51898157d99112be7550471ec06e32344c9e (patch) | |
tree | 0645274d0f13b4fa6940d4054f74a070611a8ef0 /include/SearchBar.hpp | |
parent | da89ec98fb34757f0c46dc8cb2dd87ae78d317ce (diff) |
Refactor plugin into seperate pages
TODO: Readd 4chan login page, manganelo creators page, autocomplete
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r-- | include/SearchBar.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index e5245be..6b7ca6d 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -15,8 +15,7 @@ namespace sf { namespace QuickMedia { using TextUpdateCallback = std::function<void(const std::string &text)>; - // Return true to consume the search (clear the search field) - using TextSubmitCallback = std::function<bool(const std::string &text)>; + using TextSubmitCallback = std::function<void(const std::string &text)>; using TextBeginTypingCallback = std::function<void()>; using AutocompleteRequestCallback = std::function<void(const std::string &text)>; @@ -69,6 +68,7 @@ namespace QuickMedia { bool draw_logo; bool needs_update; bool input_masked; + bool typing; float vertical_pos; sf::Clock time_since_search_update; }; |