aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-01 22:21:14 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-01 22:21:14 +0200
commitef1dd33682ae26b4af1343aaecf443e7cd883674 (patch)
treecf3c959f1cf9f8b6b401d384537685191ae3e4ba /include
parent30dbaeb2b175c1e67f57aba748ced1a2280fb56d (diff)
Matrix: implement mention/reply notifications
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