1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #include <vcl/virdev.hxx>
13 #include <vcl/window.hxx>
17 /// Buffers drawing on a vcl::RenderContext using a VirtualDevice.
18 class VCL_DLLPUBLIC BufferDevice
20 ScopedVclPtr
<VirtualDevice
> m_pBuffer
;
21 VclPtr
<vcl::Window
> m_pWindow
;
22 vcl::RenderContext
& m_rRenderContext
;
23 bool m_bDisposed
= false;
26 BufferDevice(const VclPtr
<vcl::Window
>& pWindow
, vcl::RenderContext
& rRenderContext
);
30 vcl::RenderContext
* operator->();
31 vcl::RenderContext
& operator*();
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */