00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025 #ifndef SFML_COLOR_HPP
00026 #define SFML_COLOR_HPP
00027
00029
00031 #include <SFML/Config.hpp>
00032
00033
00034 namespace sf
00035 {
00040 class SFML_API Color
00041 {
00042 public :
00043
00051 Color();
00052
00062 Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha = 255);
00063
00065
00067 static const Color Black;
00068 static const Color White;
00069 static const Color Red;
00070 static const Color Green;
00071 static const Color Blue;
00072 static const Color Yellow;
00073 static const Color Magenta;
00074 static const Color Cyan;
00075
00077
00079 Uint8 r;
00080 Uint8 g;
00081 Uint8 b;
00082 Uint8 a;
00083 };
00084
00097 SFML_API bool operator ==(const Color& left, const Color& right);
00098
00111 SFML_API bool operator !=(const Color& left, const Color& right);
00112
00126 SFML_API Color operator +(const Color& left, const Color& right);
00127
00143 SFML_API Color operator *(const Color& left, const Color& right);
00144
00159 SFML_API Color& operator +=(Color& left, const Color& right);
00160
00177 SFML_API Color& operator *=(Color& left, const Color& right);
00178
00179 }
00180
00181
00182 #endif // SFML_COLOR_HPP
00183
00184