29 #ifndef NOMLIB_COLORS_HEADERS
30 #define NOMLIB_COLORS_HEADERS
34 #include "nomlib/config.hpp"
38 const std::string color_delimiter =
", ";
56 Color ( uint8 red, uint8 green, uint8 blue );
59 Color ( uint8 red, uint8 green, uint8 blue, uint8 alpha );
65 bool isNull (
void )
const;
68 const Color&
get ( void )
const;
78 static const Color White;
79 static const Color Red;
80 static const Color Green;
81 static const Color Blue;
82 static const Color Yellow;
83 static const Color Magenta;
84 static const Color Cyan;
88 static const Color Gray;
122 std::ostream& operator << ( std::ostream& os,
const Color& color );
124 bool operator == (
const Color& left,
const Color& right );
125 bool operator != (
const Color& left,
const Color& right );
149 #endif // NOMLIB_COLORS_HEADERS defined
uint8 & r
Reference alias for red instance variable.
static const Color NomSecondaryColorKey
Light magenta color key.
static const Color NomPrimaryColorKey
Sky blue color key.
Color & operator=(const Color &other)
Copy assignment operator.
static const Color Black
Predefined color constants for convenience sake.
static const Color null
Convenience object that will always contain a value of -1.
uint8 & a
Reference alias for alpha instance variable.
Color(void)
Default constructor; sets the color to their respective defaults.
static const Color LightGray
Additional predefined color constants.
uint8 & g
Reference alias for green instance variable.
uint8 & b
Reference alias for blue instance variable.
Utility class container for RGBA colors.