aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ImageViewer.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ImageViewer.hpp b/include/ImageViewer.hpp
index cb63229..b587b82 100644
--- a/include/ImageViewer.hpp
+++ b/include/ImageViewer.hpp
@@ -55,6 +55,7 @@ namespace QuickMedia {
int get_focused_page() const;
int get_num_pages() const { return num_pages; }
private:
+ void scroll_to_page(int page);
void load_image_async(const Path &path, std::shared_ptr<ImageData> image_data);
bool render_page(mgl::Window &window, int page, double offset_y);
mgl::vec2d get_page_size(int page);
@@ -100,5 +101,8 @@ namespace QuickMedia {
bool loading_image = false;
bool *fit_image_to_window;
+
+ mgl::vec2d prev_size_first_page;
+ mgl::vec2d prev_size_last_page;
};
} \ No newline at end of file