aboutsummaryrefslogtreecommitdiff
path: root/include/SearchBar.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-11 14:24:52 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-11 14:24:52 +0200
commite308d77b06405b91885cf6f97c0dc2a1b70679ef (patch)
tree7fb0ed73c20354f3e0ff49ebb199e33ebc3427f7 /include/SearchBar.hpp
parent6b90f55f4dc14b9d39fa0dbf6b82b3c12ccc29d9 (diff)
Improve file saving gui
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r--include/SearchBar.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp
index cad897f..4fc19e9 100644
--- a/include/SearchBar.hpp
+++ b/include/SearchBar.hpp
@@ -33,7 +33,9 @@ namespace QuickMedia {
void set_to_autocomplete();
void set_autocomplete_text(const std::string &text);
void set_position(sf::Vector2f pos);
+ void set_editable(bool editable);
+ bool is_editable() const;
float getBottom() const;
float getBottomWithoutShadow() const;
@@ -74,5 +76,6 @@ namespace QuickMedia {
sf::Vector2f pos;
sf::Clock time_since_search_update;
sf::Vector2f prev_size;
+ bool editable = true;
};
} \ No newline at end of file