Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / inc / unx / pixmap.hxx
blobec3c9321a6115e55188c305c6bf1bf32c08dbd75
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 #ifndef INCLUDED_VCL_INC_UNX_PIXMAP_HXX
11 #define INCLUDED_VCL_INC_UNX_PIXMAP_HXX
13 #include <prex.h>
14 #include <postx.h>
15 #include <tools/gen.hxx>
16 #include <unx/saltype.h>
17 #include <vclpluginapi.h>
19 class VCLPLUG_GEN_PUBLIC X11Pixmap
21 public:
22 X11Pixmap( int nWidth, int nHeight )
24 mnWidth = nWidth;
25 mnHeight = nHeight;
28 virtual ~X11Pixmap() {};
30 virtual int GetDepth() const = 0;
31 virtual SalX11Screen GetScreen() const = 0;
32 virtual Pixmap GetPixmap() const = 0;
33 Drawable GetDrawable() const { return GetPixmap(); };
34 int GetWidth() const { return mnWidth; };
35 int GetHeight() const { return mnHeight; };
36 Size GetSize() const { return Size( mnWidth, mnHeight ); };
38 protected:
39 int mnWidth;
40 int mnHeight;
43 #endif // INCLUDED_VCL_INC_UNX_PIXMAP_HXX
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */