LibreOffice Module vcl (master) 1
wingdiimpl.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
10#pragma once
11
12#include <win/salgdi.h>
13#include <ControlCacheKey.hxx>
14
15class ControlCacheKey;
16
17// Base class for some functionality that OpenGL/Skia/GDI backends must each implement.
19{
20public:
22
23 // If true is returned, the following functions are used for drawing controls.
24 virtual bool UseRenderNativeControl() const { return false; }
25 virtual bool TryRenderCachedNativeControl(const ControlCacheKey& /*rControlCacheKey*/,
26 int /*nX*/, int /*nY*/)
27 {
28 abort();
29 }
30 virtual bool RenderAndCacheNativeControl(CompatibleDC& /*rWhite*/, CompatibleDC& /*rBlack*/,
31 int /*nX*/, int /*nY*/,
32 ControlCacheKey& /*aControlCacheKey*/)
33 {
34 abort();
35 }
36
37 virtual void ClearDevFontCache() {}
38
39 virtual void Flush() {}
40
41 // Implementation for WinSalGraphics::DrawTextLayout().
42 // Returns true if handled, if false, then WinSalGraphics will handle it itself.
43 virtual bool DrawTextLayout(const GenericSalLayout&) { return false; }
44
45 virtual void ClearNativeControlCache() {}
46};
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Class that creates (and destroys) a compatible Device Context.
Definition: win/salgdi.h:94
virtual bool DrawTextLayout(const GenericSalLayout &)
Definition: wingdiimpl.hxx:43
virtual void Flush()
Definition: wingdiimpl.hxx:39
virtual bool TryRenderCachedNativeControl(const ControlCacheKey &, int, int)
Definition: wingdiimpl.hxx:25
virtual bool UseRenderNativeControl() const
Definition: wingdiimpl.hxx:24
virtual void ClearDevFontCache()
Definition: wingdiimpl.hxx:37
virtual ~WinSalGraphicsImplBase()
Definition: wingdiimpl.hxx:21
virtual void ClearNativeControlCache()
Definition: wingdiimpl.hxx:45
virtual bool RenderAndCacheNativeControl(CompatibleDC &, CompatibleDC &, int, int, ControlCacheKey &)
Definition: wingdiimpl.hxx:30