diff options
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 |