1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_VCL_INC_UNX_PIXMAP_HXX
11 #define INCLUDED_VCL_INC_UNX_PIXMAP_HXX
15 #include <tools/gen.hxx>
16 #include <unx/saltype.h>
17 #include <vclpluginapi.h>
19 class VCLPLUG_GEN_PUBLIC X11Pixmap
22 X11Pixmap( int nWidth
, int 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
); };
43 #endif // INCLUDED_VCL_INC_UNX_PIXMAP_HXX
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */