diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-10-29 00:58:27 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-10-29 00:59:49 +0100 |
commit | 479ed7ab493c4423a4cc48adbf5ad420224fabb4 (patch) | |
tree | 4bcb1b33b6b99bb02f3ef0bf0cc7f2536edc51c0 /src/SearchBar.cpp | |
parent | be7a58b8e37e70bae5c6699ca9b7a0fec1fd72f9 (diff) |
Add search menu tab (currently only manga)
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r-- | src/SearchBar.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index 179f1d9..78cacb9 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -30,8 +30,9 @@ namespace QuickMedia { plugin_logo_sprite.setTexture(plugin_logo, true); } - void SearchBar::draw(sf::RenderWindow &window) { - window.draw(background_shadow); + void SearchBar::draw(sf::RenderWindow &window, bool draw_shadow) { + if(draw_shadow) + window.draw(background_shadow); window.draw(shade); window.draw(background); window.draw(text); @@ -129,4 +130,8 @@ namespace QuickMedia { float SearchBar::getBottom() const { return shade.getSize().y + background_shadow.getSize().y; } + + float SearchBar::getBottomWithoutShadow() const { + return shade.getSize().y; + } }
\ No newline at end of file |