vdk 2.4.0
image.h
1 /*
2  * ===========================
3  * VDK Visual Development Kit
4  * Version 2.0
5  * Feebruary 2001
6  * ===========================
7  *
8  * Copyright (C) 1998, Mario Motta
9  * Developed by Mario Motta <mmotta@guest.net>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  * 02111-1307, USA.
25  */
26 
27 #ifndef VDKIMAGE_H
28 #define VDKIMAGE_H
29 
30 #include <vdk/vdkobj.h>
31 #include <vdk/rawpixbuf.h>
32 class VDKTooltip;
45 class VDKImage: public VDKObject
46 {
47 
48 protected:
49  int width,height;
50  VDKPixbuf* pixmap;
51  GtkWidget* pixmapWid;
52  VDKTooltip* tip;
53  VDKPixbuf* oldRawPix;
54 public:
61  VDKImage(VDKForm* owner,
62  const char* pixfile,
63  char* tip = NULL,
64  bool sensitive = false);
71  VDKImage(VDKForm* owner,
72  const char** pixdata,
73  char* tip = NULL,
74  bool sensitive = false);
78  virtual ~VDKImage();
82  int Width() { return width; }
86  int Height() { return height; }
90  VDKPixbuf* SetImage() { return oldRawPix; }
95  VDKPixbuf* SetImage(const char* file);
100  VDKPixbuf* SetImage(VDKPixbuf* newpix);
105  VDKPixbuf* SetImage(const char** pixdata);
106 };
107 #endif
Definition: vdkobj.h:137
Provides a raw image wrapping GdkPixbuf This class should in time substitute VDKRawPixmap that from n...
Definition: rawpixbuf.h:40
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:68
int Width()
Definition: image.h:82
virtual ~VDKImage()
Definition: image.cc:260
int Height()
Definition: image.h:86
VDKImage(VDKForm *owner, const char *pixfile, char *tip=NULL, bool sensitive=false)
Definition: image.cc:167
VDKPixbuf * SetImage()
Definition: image.h:90
Provides an image widget This widget should substitute VDKPixmap object that from now should be consi...
Definition: image.h:45
Provides a tooltip.
Definition: tooltips.h:36