From ef1dd33682ae26b4af1343aaecf443e7cd883674 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Oct 2020 22:21:14 +0200 Subject: Matrix: implement mention/reply notifications --- include/Body.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/Body.hpp') 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 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 load_thumbnail_future; int num_visible_items; bool last_item_fully_visible; + int last_fully_visible_item; }; } \ No newline at end of file -- cgit v1.2.3