X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fscreen.h;h=f5ae7533a14e21272140b32470d8b04e58fd324d;hb=4e0ddbcec6e182430a31e0f1c661f2c93c9e0308;hp=8452efcb76908f0e479f8e6a8552d267b4e31aef;hpb=e6c66a8e58f1dda071e6fc4abed39afe49d348f8;p=ipdf%2Fcode.git diff --git a/src/screen.h b/src/screen.h index 8452efc..f5ae753 100644 --- a/src/screen.h +++ b/src/screen.h @@ -24,8 +24,8 @@ namespace IPDF void Present(); // Get the current width/height of the window's viewport. - int ViewportWidth() { return m_viewport_width; } - int ViewportHeight() { return m_viewport_height; } + int ViewportWidth() const { return m_viewport_width; } + int ViewportHeight() const { return m_viewport_height; } // Handle mouse input. typedef std::function MouseHandler; @@ -43,10 +43,14 @@ namespace IPDF CursorHand }; void SetMouseCursor(MouseCursors cursor); + + void ScreenShot(const char * filename) const; private: void ResizeViewport(int width, int height); MouseHandler m_mouse_handler; + int m_last_mouse_x; + int m_last_mouse_y; int m_viewport_width; int m_viewport_height;