00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef RAWPIXMAP_H
00028 #define RAWPIXMAP_H
00029 #include <vdk/vdkobj.h>
00030 #include <vdk/rawobj.h>
00031 class VDKObject;
00032 class VDKForm;
00037 class VDKRawPixmap : public VDKRawObject
00038 {
00039 protected:
00040 GdkPixmap *pixmap;
00041 GdkBitmap *mask;
00042 GtkStyle *style;
00043 int w,h;
00044 VDKPoint lastDraw;
00045 public:
00051 VDKRawPixmap(VDKObject* owner, char* pixfile);
00057 VDKRawPixmap(VDKObject* owner, char** pixdata);
00061 virtual ~VDKRawPixmap();
00065 operator GdkPixmap*() { return pixmap; }
00066 GdkPixmap* AsGdkPixmap() { return pixmap; }
00070 GdkBitmap* Mask() { return mask; }
00074 GtkStyle* Style() { return style; }
00082 void Paint(int x, int y);
00086 void Paint(bool lastdraw=true, GdkWindow* window=0, int x = 0, int y = 0);
00090 int Width() { return w; }
00094 int Height() { return h; }
00095 };
00096
00097 #endif
00098
00099
00100