aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbPixmap.hh
diff options
context:
space:
mode:
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; }