diff options
Diffstat (limited to 'include/ImageViewer.hpp')
-rw-r--r-- | include/ImageViewer.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ImageViewer.hpp b/include/ImageViewer.hpp index fb1e5e3..ed3363d 100644 --- a/include/ImageViewer.hpp +++ b/include/ImageViewer.hpp @@ -25,10 +25,16 @@ namespace QuickMedia { bool loaded; }; + enum class ImageViewerAction { + NONE, + RETURN, + SWITCH_TO_SINGLE_IMAGE_MODE + }; + class ImageViewer { public: ImageViewer(Manga *manga, const std::string &images_url, const std::string &chapter_title, int current_page, const Path &chapter_cache_dir, sf::Font *font); - bool draw(sf::RenderWindow &window); + ImageViewerAction draw(sf::RenderWindow &window); // Returns page as 1 indexed int get_focused_page() const; int get_num_pages() const { return num_pages; } |