aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/SearchBar.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp
index 6222da4..0cffff5 100644
--- a/include/SearchBar.hpp
+++ b/include/SearchBar.hpp
@@ -16,7 +16,7 @@ namespace QuickMedia {
class SearchBar {
public:
- SearchBar(sf::Font &font, sf::Texture &plugin_logo);
+ SearchBar(sf::Font &font, sf::Texture &plugin_logo, const std::string &placeholder);
void draw(sf::RenderWindow &window, bool draw_shadow = true);
void update();
void onWindowResize(const sf::Vector2f &window_size);
@@ -45,6 +45,7 @@ namespace QuickMedia {
sf::RectangleShape background_shadow;
sf::RectangleShape shade;
sf::Sprite plugin_logo_sprite;
+ std::string placeholder_str;
bool show_placeholder;
bool updated_search;
bool updated_autocomplete;