From 77ed51898157d99112be7550471ec06e32344c9e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 11 Oct 2020 21:35:37 +0200 Subject: Refactor plugin into seperate pages TODO: Readd 4chan login page, manganelo creators page, autocomplete --- include/Body.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/Body.hpp') diff --git a/include/Body.hpp b/include/Body.hpp index 3d5c870..875ad61 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -101,7 +101,6 @@ namespace QuickMedia { class Body { public: Body(Program *program, sf::Font *font, sf::Font *bold_font, sf::Font *cjk_font); - ~Body(); // Select previous page, ignoring invisible items. Returns true if the item was changed. This can be used to check if the top was hit when wrap_around is set to false bool select_previous_page(); @@ -126,6 +125,8 @@ namespace QuickMedia { void append_items(BodyItems new_items); void insert_item_by_timestamp(std::shared_ptr body_item); void insert_items_by_timestamps(BodyItems new_items); + void clear_cache(); + void clear_text_cache(); void clear_thumbnails(); BodyItem* get_selected() const; @@ -188,7 +189,6 @@ namespace QuickMedia { sf::RectangleShape item_background_shadow; sf::RoundedRectangleShape item_background; sf::Sprite image; - std::future load_thumbnail_future; int num_visible_items; bool last_item_fully_visible; int last_fully_visible_item; -- cgit v1.2.3