From 479ed7ab493c4423a4cc48adbf5ad420224fabb4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 29 Oct 2019 00:58:27 +0100 Subject: Add search menu tab (currently only manga) --- include/SearchBar.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/SearchBar.hpp') diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index 8ac8766..88eed19 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -15,13 +15,14 @@ namespace QuickMedia { class SearchBar { public: SearchBar(sf::Font &font, sf::Texture &plugin_logo); - void draw(sf::RenderWindow &window); + void draw(sf::RenderWindow &window, bool draw_shadow = true); void update(); void onWindowResize(const sf::Vector2f &window_size); void onTextEntered(sf::Uint32 codepoint); void clear(); float getBottom() const; + float getBottomWithoutShadow() const; TextUpdateCallback onTextUpdateCallback; TextSubmitCallback onTextSubmitCallback; -- cgit v1.2.3