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 VDKIMAGE_H
00028 #define VDKIMAGE_H
00029
00030 #include <vdk/vdkobj.h>
00031 #include <vdk/rawpixbuf.h>
00032 class VDKTooltip;
00045 class VDKImage: public VDKObject
00046 {
00047
00048 protected:
00049 int width,height;
00050 VDKPixbuf* pixmap;
00051 GtkWidget* pixmapWid;
00052 VDKTooltip* tip;
00053 VDKPixbuf* oldRawPix;
00054 public:
00061 VDKImage(VDKForm* owner,
00062 const char* pixfile,
00063 char* tip = NULL,
00064 bool sensitive = false);
00071 VDKImage(VDKForm* owner,
00072 const char** pixdata,
00073 char* tip = NULL,
00074 bool sensitive = false);
00078 virtual ~VDKImage();
00082 int Width() { return width; }
00086 int Height() { return height; }
00090 VDKPixbuf* SetImage() { return oldRawPix; }
00095 VDKPixbuf* SetImage(const char* file);
00100 VDKPixbuf* SetImage(VDKPixbuf* newpix);
00105 VDKPixbuf* SetImage(const char** pixdata);
00106 };
00107 #endif