Line data Source code
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_UNX_PIXMAP_HXX
11 : #define INCLUDED_VCL_INC_UNX_PIXMAP_HXX
12 :
13 : #include <prex.h>
14 : #include <postx.h>
15 : #include <tools/gen.hxx>
16 : #include <unx/saltype.h>
17 : #include <vclpluginapi.h>
18 :
19 : class VCLPLUG_GEN_PUBLIC X11Pixmap
20 : {
21 : public:
22 0 : X11Pixmap( int nWidth, int nHeight )
23 0 : {
24 0 : mnWidth = nWidth;
25 0 : mnHeight = nHeight;
26 0 : }
27 :
28 0 : virtual ~X11Pixmap() {};
29 :
30 : virtual int GetDepth() const = 0;
31 : virtual SalX11Screen GetScreen() const = 0;
32 : virtual Pixmap GetPixmap() const = 0;
33 0 : Drawable GetDrawable() const { return GetPixmap(); };
34 0 : int GetWidth() const { return mnWidth; };
35 0 : int GetHeight() const { return mnHeight; };
36 : Size GetSize() const { return Size( mnWidth, mnHeight ); };
37 :
38 : protected:
39 : int mnWidth;
40 : int mnHeight;
41 : };
42 :
43 : #endif // INCLUDED_VCL_INC_UNX_PIXMAP_HXX
44 :
45 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|