cacolor.h

00001 #ifndef CACOLOR_H
00002 #define CACOLOR_H
00003 
00004 #include <ClanLib/core.h>
00005 
00006 
00012 struct CAColor {
00013 
00016     CAColor() {
00017         h = s = v = 0;
00018     }
00019 
00020 
00023     CAColor( int h, int s, int v ) {
00024         this->h = h;
00025         this->s = s;
00026         this->v = v;
00027     }
00028 
00029 
00032     inline bool operator==( CAColor c ) {
00033         return (this->h==c.h && this->s==c.s && this->v==c.v);
00034     }
00035 
00036 
00039     inline bool operator!=( CAColor c ) {
00040         //return (this->h!=c.h || this->s!=c.s || this->v!=c.v);
00041         return !operator==( c );
00042     }
00043 
00044 
00047     inline CAColor operator=( CAColor c ) {
00048         h = c.h;
00049         s = c.s;
00050         v = c.v;
00051         return *this;
00052     }
00053 
00055     int h;
00057     int s;
00059     int v;
00060 };
00061 
00062 #endif
00063 
00064 // EOF

Generated on Tue Nov 28 06:48:28 2006 by  doxygen 1.5.0