aboutsummaryrefslogtreecommitdiff
path: root/include/SearchBar.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-10-29 00:58:27 +0100
committerdec05eba <dec05eba@protonmail.com>2019-10-29 00:59:49 +0100
commit479ed7ab493c4423a4cc48adbf5ad420224fabb4 (patch)
tree4bcb1b33b6b99bb02f3ef0bf0cc7f2536edc51c0 /include/SearchBar.hpp
parentbe7a58b8e37e70bae5c6699ca9b7a0fec1fd72f9 (diff)
Add search menu tab (currently only manga)
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r--include/SearchBar.hpp3
1 files changed, 2 insertions, 1 deletions
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;