tdf#130857 qt weld: Support "Java Start Parameters" dialog
[LibreOffice.git] / vcl / source / window / bufferdevice.hxx
blobeafc829e59102b0bd7d87faf44f3ba61a756ed5c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #pragma once
12 #include <vcl/virdev.hxx>
13 #include <vcl/window.hxx>
15 namespace vcl
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;
25 public:
26 BufferDevice(const VclPtr<vcl::Window>& pWindow, vcl::RenderContext& rRenderContext);
27 ~BufferDevice();
28 void Dispose();
30 vcl::RenderContext* operator->();
31 vcl::RenderContext& operator*();
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */