diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-07 14:52:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-07 16:35:22 +0200 |
commit | a6c7a0bf105c399d087e2d9f843dbd9b175fdf42 (patch) | |
tree | 57c9443c4214d68c8208c0d836ee7941e3ea3adc /vcl/inc/window.h | |
parent | 25534a62b2ba398c6298c6b9e521f20de1087540 (diff) |
tdf#92982 vcl rendercontext: move buffer paint logic to PaintBufferGuard
The motivation is that this way vcl::Cursor will be able to reuse it.
Change-Id: I7e89d5acb5d63d3297d7c3c8050ccd2172c8608d
Diffstat (limited to 'vcl/inc/window.h')
-rw-r--r-- | vcl/inc/window.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/inc/window.h b/vcl/inc/window.h index e2acda805f76..27d5ccc1c1bf 100644 --- a/vcl/inc/window.h +++ b/vcl/inc/window.h @@ -386,14 +386,18 @@ public: class PaintBufferGuard { ImplFrameData* mpFrameData; + VclPtr<vcl::Window> m_pWindow; bool mbBackground; Wallpaper maBackground; AllSettings maSettings; long mnOutOffX; long mnOutOffY; + Rectangle m_aPaintRect; public: PaintBufferGuard(ImplFrameData* pFrameData, vcl::Window* pWindow); ~PaintBufferGuard(); + /// If this is called, then the dtor will also copy rRectangle to the window from the buffer, before restoring the state. + void SetPaintRect(const Rectangle& rRectangle); }; // helper methods |