aboutsummaryrefslogtreecommitdiff
path: root/include/SearchBar.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-28 13:32:34 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-28 13:32:34 +0200
commit4277763df5c1dac8ff389d3bfd138f03acc7f1e2 (patch)
treeb0c3fc77ea601f105308d42840adb1ce2050b414 /include/SearchBar.hpp
parenta16cfdc4f6cd14d576760c100a817c08f45be394 (diff)
Implement text editing with navigation and multilingual fonts
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r--include/SearchBar.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp
index a90c69d..8a1a8a0 100644
--- a/include/SearchBar.hpp
+++ b/include/SearchBar.hpp
@@ -1,13 +1,18 @@
#pragma once
-#include <SFML/Graphics/RenderWindow.hpp>
-#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics/Text.hpp>
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/Sprite.hpp>
+#include <SFML/System/Clock.hpp>
#include "../external/RoundedRectangleShape.hpp"
#include <functional>
+namespace sf {
+ class Font;
+ class RenderWindow;
+ class Event;
+}
+
namespace QuickMedia {
using TextUpdateCallback = std::function<void(const sf::String &text)>;
// Return true to consume the search (clear the search field)