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
21  int mnWidth;
22  int mnHeight;
23 
24 public:
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: */
virtual bool SetSize(tools::Long nNewDX, tools::Long nNewDY) override
long Long
virtual void ReleaseGraphics(SalGraphics *pGraphics) override
virtual tools::Long GetHeight() const override
virtual tools::Long GetWidth() const override
X11SkiaSalVirtualDevice(SalGraphics const *pGraphics, tools::Long nDX, tools::Long nDY, const SystemGraphicsData *pData, std::unique_ptr< X11SalGraphics > pNewGraphics)
const SalX11Screen & GetXScreenNumber() const
SalDisplay * GetDisplay() const
A non-visible drawable/buffer (e.g. an X11 Pixmap).
Definition: salvd.hxx:28
virtual ~X11SkiaSalVirtualDevice() override
virtual SalGraphics * AcquireGraphics() override
std::unique_ptr< X11SalGraphics > mpGraphics