Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

pixmaps.h

00001 /*
00002  * ===========================
00003  * VDK Visual Development Kit
00004  * Version 0.4
00005  * October 1998
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  PIXMAPS_H
00028 #define  PIXMAPS_H
00029 
00030 #include <vdk/vdkobj.h>
00031 class VDKTooltip;
00032 class VDKRawPixmap;
00043 class VDKPixmap: public VDKObject
00044 {
00045 
00046 protected:
00047   int width,height;
00048   GdkPixmap* pixmap;
00049   GtkWidget* pixmapWid;
00050   VDKTooltip* tip;
00051   VDKRawPixmap* oldRawPix;
00052 public:
00060   VDKPixmap(VDKForm* owner,
00061             char* pixfile, 
00062             char* tip = NULL,
00063             bool sensitive = false);
00071   VDKPixmap(VDKForm* owner,
00072             char** pixdata, 
00073             char* tip = NULL,
00074             bool sensitive = false);
00078   virtual ~VDKPixmap();
00082   void Clear();
00086   int Width() { return width; }
00087   int Height() { return height; }
00094   VDKRawPixmap* SetPixmap() { return oldRawPix; }
00099   VDKRawPixmap* SetPixmap(char* file);
00104   VDKRawPixmap* SetPixmap(VDKRawPixmap* newpix);
00109   VDKRawPixmap* SetPixmap(char** pixdata);
00110 };
00111 #endif

Generated on Sun May 5 01:29:29 2002 for vdk 2.0.1 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002