LibreOffice Module svx (master) 1
overlaymanagerbuffered.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SVX_INC_SDR_OVERLAY_OVERLAYMANAGERBUFFERED_HXX
21#define INCLUDED_SVX_INC_SDR_OVERLAY_OVERLAYMANAGERBUFFERED_HXX
22
25#include <vcl/virdev.hxx>
26#include <vcl/idle.hxx>
27
28
29namespace sdr::overlay
30 {
32 {
33 // The VirtualDevice for draw window content buffering, this
34 // is the view content without overlay
36
37 // #i73602# The VirtualDevice for OverlayPaint buffering. This
38 // is an extra device to avoid flickering of overlay paints
40
41 // Idle for buffering
43
44 // Range for buffering (in pixel to be independent from mapMode)
46
47 // link for timer
48 DECL_LINK(ImpBufferTimerHandler, Timer*, void);
49
50 // Internal methods for buffering
52 void ImpRestoreBackground() const ;
53 void ImpRestoreBackground(const vcl::Region& rRegionPixel) const;
54 void ImpSaveBackground(const vcl::Region& rRegion, OutputDevice* pPreRenderDevice);
55
57 virtual ~OverlayManagerBuffered() override;
58
59 public:
61
62 // complete redraw
63 virtual void completeRedraw(const vcl::Region& rRegion, OutputDevice* pPreRenderDevice = nullptr) const override;
64
65 // flush. Do buffered updates.
66 virtual void flush() override;
67
68 // invalidate the given range at local OutputDevice
69 virtual void invalidateRange(const basegfx::B2DRange& rRange) override;
70 };
71} // end of namespace sdr::overlay
72
73
74#endif // INCLUDED_SVX_INC_SDR_OVERLAY_OVERLAYMANAGERBUFFERED_HXX
75
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void completeRedraw(const vcl::Region &rRegion, OutputDevice *pPreRenderDevice=nullptr) const override
virtual void invalidateRange(const basegfx::B2DRange &rRange) override
DECL_LINK(ImpBufferTimerHandler, Timer *, void)
OverlayManagerBuffered(OutputDevice &rOutputDevice)
ScopedVclPtr< VirtualDevice > mpOutputBufferDevice
ScopedVclPtr< VirtualDevice > mpBufferDevice
void ImpSaveBackground(const vcl::Region &rRegion, OutputDevice *pPreRenderDevice)
static rtl::Reference< OverlayManager > create(OutputDevice &rOutputDevice)