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

Color.h

Go to the documentation of this file.
00001 #ifndef AFX_COLOR_H__628D952A_22AB_4DF9_9DB7_D13F7416B058__INCLUDED_
00002 #define AFX_COLOR_H__628D952A_22AB_4DF9_9DB7_D13F7416B058__INCLUDED_
00003 
00004 class ColorDefinitions;
00005 
00006 //disable a VC++ annoying warning related to long strings in debug information, caused by using STL
00007 #pragma warning(disable : 4786) 
00008 
00009 class Color  {
00010 public:
00011    Color(unsigned char r=0, unsigned char g=0, unsigned char b=0, bool transparent=false);
00012    Color(const char* name);
00013    virtual ~Color();
00014 
00015    unsigned char r, g, b;
00016    bool transparent;
00017 
00018    void setTransparent() { transparent=true; }
00019 
00020 private:
00021    static ColorDefinitions definitions;
00022 };
00023 
00024 #endif // AFX_COLOR_H__628D952A_22AB_4DF9_9DB7_D13F7416B058__INCLUDED_

Thyrix homepageUsers' guide

(C) Arxia 2004-2005