diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-13 09:32:41 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-11-15 12:17:42 +0100 |
commit | ec5fa3c9073db79489d8eba1eb8a09029b699e3f (patch) | |
tree | eb55f47971319b8f90bb86ad37430c857fc751ae /vcl/inc/unx/pixmap.hxx | |
parent | 7dc6fd3908f752c3552dfe34b1a3da6e485b5fd5 (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.hxx | 24 |
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 |