vdk 2.4.0
rawpixmap.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 RAWPIXMAP_H
28 #define RAWPIXMAP_H
29 #include <vdk/vdkobj.h>
30 #include <vdk/rawobj.h>
31 class VDKObject;
32 class VDKForm;
37 class VDKRawPixmap : public VDKRawObject
38 {
39  protected:
40  GdkPixmap *pixmap;
41  GdkBitmap *mask;
42  GtkStyle *style;
43  int w,h;
44  VDKPoint lastDraw;
45  public:
51  VDKRawPixmap(VDKObject* owner, char* pixfile);
57  VDKRawPixmap(VDKObject* owner, char** pixdata);
61  virtual ~VDKRawPixmap();
65  operator GdkPixmap*() { return pixmap; }
66  GdkPixmap* AsGdkPixmap() { return pixmap; }
70  GdkBitmap* Mask() { return mask; }
74  GtkStyle* Style() { return style; }
82  void Paint(int x, int y);
86  void Paint(bool lastdraw=true, GdkWindow* window=0, int x = 0, int y = 0);
90  int Width() { return w; }
94  int Height() { return h; }
95 };
96 
97 #endif
98 
99 
100 
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
Definition: vdkobj.h:141
Provides a simple point object.
Definition: vdkutils.h:94
Provides a base class for derived raw objects.
Definition: rawobj.h:39
Provides a raw pixmap.
Definition: rawpixmap.h:38
VDKRawPixmap(VDKObject *owner, char *pixfile)
Definition: rawpixmap.cc:49
int Height()
Definition: rawpixmap.h:94
virtual ~VDKRawPixmap()
Definition: rawpixmap.cc:102
GdkBitmap * Mask()
Definition: rawpixmap.h:70
void Paint(int x, int y)
Definition: rawpixmap.cc:116
GtkStyle * Style()
Definition: rawpixmap.h:74
int Width()
Definition: rawpixmap.h:90