image.h

00001 /*
00002  * ===========================
00003  * VDK Visual Development Kit
00004  * Version 2.0
00005  * Feebruary 2001
00006  * ===========================
00007  *
00008  * Copyright (C) 1998, Mario Motta
00009  * Developed by Mario Motta <mmotta@guest.net>
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this library; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00024  * 02111-1307, USA.
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

Generated on Fri Jan 12 14:48:27 2007 for vdk 2.4.0 by  doxygen 1.5.1