Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / vcl / inc / unx / pixmap.hxx
blob658935a70e4db77c6ea517ace507524bce3bfad8
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 <X11/Xlib.h>
14 #include <X11/Xutil.h>
16 #include <tools/gen.hxx>
17 #include <unx/saltype.h>
18 #include <vclpluginapi.h>
20 class VCLPLUG_GEN_PUBLIC X11Pixmap
22 public:
23 X11Pixmap( int nWidth, int nHeight )
25 mnWidth = nWidth;
26 mnHeight = nHeight;
29 virtual ~X11Pixmap() {};
31 virtual int GetDepth() const = 0;
32 virtual SalX11Screen GetScreen() const = 0;
33 virtual Pixmap GetPixmap() const = 0;
34 Drawable GetDrawable() const { return GetPixmap(); };
35 int GetWidth() const { return mnWidth; };
36 int GetHeight() const { return 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: */