vdk 2.4.0
vdk
pixmaps.h
1
/*
2
* ===========================
3
* VDK Visual Development Kit
4
* Version 0.4
5
* October 1998
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 PIXMAPS_H
28
#define PIXMAPS_H
29
30
#include <vdk/vdkobj.h>
31
class
VDKTooltip
;
32
class
VDKRawPixmap
;
43
class
VDKPixmap
:
public
VDKObject
44
{
45
46
protected
:
47
int
width,height;
48
GdkPixmap* pixmap;
49
GtkWidget* pixmapWid;
50
VDKTooltip
* tip;
51
VDKRawPixmap
* oldRawPix;
52
public
:
60
VDKPixmap
(
VDKForm
* owner,
61
char
* pixfile,
62
char
* tip = NULL,
63
bool
sensitive =
false
);
71
VDKPixmap
(
VDKForm
* owner,
72
char
** pixdata,
73
char
* tip = NULL,
74
bool
sensitive =
false
);
78
virtual
~VDKPixmap
();
82
void
Clear
();
86
int
Width
() {
return
width; }
87
int
Height() {
return
height; }
94
VDKRawPixmap
*
SetPixmap
() {
return
oldRawPix; }
99
VDKRawPixmap
*
SetPixmap
(
char
* file);
104
VDKRawPixmap
*
SetPixmap
(
VDKRawPixmap
* newpix);
109
VDKRawPixmap
*
SetPixmap
(
char
** pixdata);
110
};
111
#endif
VDKObject
Definition:
vdkobj.h:137
VDKPixmap
Provides a pixmap widget.
Definition:
pixmaps.h:43
VDKPixmap::~VDKPixmap
virtual ~VDKPixmap()
Definition:
pixmaps.cc:147
VDKPixmap::Clear
void Clear()
Definition:
pixmaps.cc:238
VDKForm
VDKForm widgets, generally the outermost widget container.
Definition:
forms.h:68
VDKPixmap::Width
int Width()
Definition:
pixmaps.h:86
VDKPixmap::SetPixmap
VDKRawPixmap * SetPixmap()
Definition:
pixmaps.h:94
VDKTooltip
Provides a tooltip.
Definition:
tooltips.h:36
VDKRawPixmap
Provides a raw pixmap.
Definition:
rawpixmap.h:37
VDKPixmap::VDKPixmap
VDKPixmap(VDKForm *owner, char *pixfile, char *tip=NULL, bool sensitive=false)
Definition:
pixmaps.cc:41
Generated by
1.8.17