aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index d2a3424..47de784 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -114,6 +114,9 @@ namespace QuickMedia {
BodyItem* get_selected() const;
std::shared_ptr<BodyItem> get_selected_shared();
+ // Returns null if not visible item
+ BodyItem* get_last_fully_visible_item();
+
void clamp_selection();
void draw(sf::RenderWindow &window, sf::Vector2f pos, sf::Vector2f size);
void draw(sf::RenderWindow &window, sf::Vector2f pos, sf::Vector2f size, const Json::Value &content_progress);
@@ -169,5 +172,6 @@ namespace QuickMedia {
std::future<void> load_thumbnail_future;
int num_visible_items;
bool last_item_fully_visible;
+ int last_fully_visible_item;
};
} \ No newline at end of file