aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbPixmap.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-27 00:12:17 (GMT)
committerfluxgen <fluxgen>2003-04-27 00:12:17 (GMT)
commit4e9eac4824ba042f0a192b51758ce68293c16582 (patch)
tree8ad0854e3168f8cadce1b9dad61a708895a6242c /src/FbTk/FbPixmap.hh
parent5a543f8d7c9ef71eb979f896c7de7cb631d21fd8 (diff)
downloadfluxbox-4e9eac4824ba042f0a192b51758ce68293c16582.zip
fluxbox-4e9eac4824ba042f0a192b51758ce68293c16582.tar.bz2
assign new pixmap via constructor and operator
Diffstat (limited to 'src/FbTk/FbPixmap.hh')
-rw-r--r--src/FbTk/FbPixmap.hh12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/FbTk/FbPixmap.hh b/src/FbTk/FbPixmap.hh
index 05f05e3..a8f9472 100644
--- a/src/FbTk/FbPixmap.hh
+++ b/src/FbTk/FbPixmap.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbPixmap.hh,v 1.1 2003/04/25 12:29:49 fluxgen Exp $ 22// $Id: FbPixmap.hh,v 1.2 2003/04/27 00:10:28 fluxgen Exp $
23 23
24#ifndef FBTK_FBPIXMAP_HH 24#ifndef FBTK_FBPIXMAP_HH
25#define FBTK_FBPIXMAP_HH 25#define FBTK_FBPIXMAP_HH
@@ -32,11 +32,16 @@ namespace FbTk {
32class FbPixmap { 32class FbPixmap {
33public: 33public:
34 FbPixmap(); 34 FbPixmap();
35 FbPixmap(const FbPixmap &copy); 35 /// copy pixmap
36 explicit FbPixmap(const FbPixmap &copy);
37 /// creates a FbPixmap from X pixmap
38 explicit FbPixmap(Pixmap pm);
36 FbPixmap(Drawable src, 39 FbPixmap(Drawable src,
37 unsigned int width, unsigned int height, 40 unsigned int width, unsigned int height,
38 int depth); 41 int depth);
42
39 ~FbPixmap(); 43 ~FbPixmap();
44
40 void copyArea(Drawable src, GC gc, 45 void copyArea(Drawable src, GC gc,
41 int src_x, int src_y, 46 int src_x, int src_y,
42 int dest_x, int dest_y, 47 int dest_x, int dest_y,
@@ -48,7 +53,10 @@ public:
48 void fillPolygon(GC gc, XPoint *points, int npoints, 53 void fillPolygon(GC gc, XPoint *points, int npoints,
49 int shape, int mode); 54 int shape, int mode);
50 void copy(const FbPixmap &the_copy); 55 void copy(const FbPixmap &the_copy);
56
51 FbPixmap &operator = (const FbPixmap &copy); 57 FbPixmap &operator = (const FbPixmap &copy);
58 /// sets new pixmap
59 FbPixmap &operator = (Pixmap pm);
52 60
53 inline Drawable drawable() const { return m_pm; } 61 inline Drawable drawable() const { return m_pm; }
54 inline unsigned int width() const { return m_width; } 62 inline unsigned int width() const { return m_width; }