LibreOffice Module vcl (master) 1
skia/x11/salvd.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#ifndef INCLUDED_VCL_INC_SKIA_X11_SALVD_H
11#define INCLUDED_VCL_INC_SKIA_X11_SALVD_H
12
13#include <salvd.hxx>
14
16{
18 std::unique_ptr<X11SalGraphics> mpGraphics;
19 bool mbGraphics; // is Graphics used
23
24public:
26 const SystemGraphicsData* pData,
27 std::unique_ptr<X11SalGraphics> pNewGraphics);
28 virtual ~X11SkiaSalVirtualDevice() override;
29
30 // SalGeometryProvider
31 virtual tools::Long GetWidth() const override { return mnWidth; }
32 virtual tools::Long GetHeight() const override { return mnHeight; }
33
34 SalDisplay* GetDisplay() const { return mpDisplay; }
35 const SalX11Screen& GetXScreenNumber() const { return mnXScreen; }
36
37 virtual SalGraphics* AcquireGraphics() override;
38 virtual void ReleaseGraphics(SalGraphics* pGraphics) override;
39
40 // Set new size, without saving the old contents
41 virtual bool SetSize(tools::Long nNewDX, tools::Long nNewDY) override;
42};
43
44#endif // INCLUDED_VCL_INC_SKIA_X11_SALVD_H
45
46/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A non-visible drawable/buffer (e.g. an X11 Pixmap).
Definition: salvd.hxx:30
std::unique_ptr< X11SalGraphics > mpGraphics
virtual ~X11SkiaSalVirtualDevice() override
SalDisplay * GetDisplay() const
virtual void ReleaseGraphics(SalGraphics *pGraphics) override
virtual SalGraphics * AcquireGraphics() override
virtual bool SetSize(tools::Long nNewDX, tools::Long nNewDY) override
X11SkiaSalVirtualDevice(const SalGraphics &rGraphics, tools::Long nDX, tools::Long nDY, const SystemGraphicsData *pData, std::unique_ptr< X11SalGraphics > pNewGraphics)
const SalX11Screen & GetXScreenNumber() const
virtual tools::Long GetWidth() const override
virtual tools::Long GetHeight() const override
long Long