vdk 2.4.0
colors.h
1 /*
2  * ===========================
3  * VDK Visual Develeopment 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 #include <vdk/forms.h>
28 #include <vdk/vdkobj.h>
29 #include <vdk/rawobj.h>
30 #ifndef COLORS_H
31 #define COLORS_H
32 
36 class VDKColor: public VDKRawObject
37 {
38  GdkColor *color;
39  GdkColormap *colormap;
40 
41 public:
49  VDKColor(VDKObject* obj, int red, int green, int blue);
55  VDKColor(VDKObject* obj, VDKRgb rgb);
62  VDKColor(VDKObject* obj, char* name);
66  virtual ~VDKColor();
70  GdkColor* Color() { return color; }
74  operator GdkColor*() { return color; }
75 };
76 #endif
77 
VDKColor::VDKColor
VDKColor(VDKObject *obj, int red, int green, int blue)
Definition: colors.cc:30
VDKObject
Definition: vdkobj.h:137
VDKRgb
Provides a simple RGB color structure.
Definition: vdkutils.h:37
VDKColor
provides a raw color object
Definition: colors.h:36
VDKRawObject
Provides a base class for derived raw objects.
Definition: rawobj.h:38
VDKColor::Color
GdkColor * Color()
Definition: colors.h:70
VDKColor::~VDKColor
virtual ~VDKColor()
Definition: colors.cc:75