summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/pixmap.hxx
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-13 09:32:41 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-15 12:17:42 +0100
commitec5fa3c9073db79489d8eba1eb8a09029b699e3f (patch)
treeeb55f47971319b8f90bb86ad37430c857fc751ae /vcl/inc/unx/pixmap.hxx
parent7dc6fd3908f752c3552dfe34b1a3da6e485b5fd5 (diff)
vcl: Replace GetPixmapFromScreen by FillPixmapFromScreen
Conflicts: vcl/unx/generic/gdi/gdiimpl.cxx vcl/unx/generic/gdi/salgdi2.cxx Change-Id: I2cb960d194ee5bc38beece97e8b21cc6fa3b3fbc
Diffstat (limited to 'vcl/inc/unx/pixmap.hxx')
-rw-r--r--vcl/inc/unx/pixmap.hxx24
1 files changed, 11 insertions, 13 deletions
diff --git a/vcl/inc/unx/pixmap.hxx b/vcl/inc/unx/pixmap.hxx
index b65170fe29bc..ec3c9321a611 100644
--- a/vcl/inc/unx/pixmap.hxx
+++ b/vcl/inc/unx/pixmap.hxx
@@ -19,27 +19,25 @@
class VCLPLUG_GEN_PUBLIC X11Pixmap
{
public:
- X11Pixmap();
- X11Pixmap( Display *pDisplay, SalX11Screen nScreen, int nWidth, int nHeight, int nDepth );
- X11Pixmap( X11Pixmap& rOther );
- virtual ~X11Pixmap();
+ X11Pixmap( int nWidth, int nHeight )
+ {
+ mnWidth = nWidth;
+ mnHeight = nHeight;
+ }
- Pixmap GetPixmap() const { return mpPixmap; };
- Drawable GetDrawable() const { return mpPixmap; };
+ virtual ~X11Pixmap() {};
+
+ virtual int GetDepth() const = 0;
+ virtual SalX11Screen GetScreen() const = 0;
+ virtual Pixmap GetPixmap() const = 0;
+ Drawable GetDrawable() const { return GetPixmap(); };
int GetWidth() const { return mnWidth; };
int GetHeight() const { return mnHeight; };
Size GetSize() const { return Size( mnWidth, mnHeight ); };
- int GetDepth() const { return mnDepth; };
- SalX11Screen GetScreen() const { return mnScreen; }
protected:
- Display* mpDisplay;
- SalX11Screen mnScreen;
- Pixmap mpPixmap;
- bool mbDeletePixmap;
int mnWidth;
int mnHeight;
- int mnDepth;
};
#endif // INCLUDED_VCL_INC_UNX_PIXMAP_HXX