arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

CanvasImage.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //   Joe Kniss
00004 //     6-20-03
00005 //                   ________    ____   ___ 
00006 //                  |        \  /    | /  /
00007 //                  +---+     \/     |/  /
00008 //                  +--+|  |\    /|     < 
00009 //                  |  ||  | \  / |  |\  \ 
00010 //                  |      |  \/  |  | \  \ 
00011 //                   \_____|      |__|  \__\
00012 //                       Copyright  2003 
00013 //                      Joe Michael Kniss
00014 //                   <<< jmk@cs.utah.edu >>>
00015 //               "All Your Base are Belong to Us"
00016 //-------------------------------------------------------------------------
00017 
00018 /// CanvasImage.h
00019 ///  simianUI
00020 
00021 #ifndef __SIMIAN_CANVAS_IMAGE_DOT_H
00022 #define __SIMIAN_CANVAS_IMAGE_DOT_H
00023 
00024 #include <qcanvas.h>
00025 #include <qimage.h>
00026 #include <qpixmap.h>
00027 #include <qpainter.h>
00028 
00029 class CanvasImage : public QCanvasRectangle {
00030 public:
00031    CanvasImage(QCanvas *canvas);
00032    virtual ~CanvasImage();
00033 
00034    /// this thing assumes ownership of
00035    /// the image passed to it, deletes it..
00036    virtual void setImage(QImage *img);
00037 
00038 protected:
00039     void drawShape( QPainter & );
00040     QImage  *_image;
00041     QPixmap *_pixmap;
00042 
00043 };
00044 
00045 #endif
00046 
00047 

Send questions, comments, and bug reports to:
jmk