Defines an RGBA color. More...
#include <cadex/View/Color.hxx>
Public Member Functions | |
Color (int theRGBA) | |
Color (int theR, int theG, int theB, int theAlpha=255) | |
Color (float theR, float theG, float theB, float theAlpha=1.0) | |
float | R () const |
float | G () const |
float | B () const |
float | A () const |
void | SetR (float theR) |
void | SetG (float theG) |
void | SetB (float theB) |
void | SetA (float theA) |
void | Values (float &theR, float &theG, float &theB, float &theAlpha) const |
void | SetValues (float theR, float theG, float theB, float theAlpha) |
std::vector< float > | ToVector (bool theWithAlpha=true) const |
unsigned int | ToRGB () const |
unsigned int | ToRGBA () const |
void | FromRGB (unsigned int theRGB) |
void | FromRGBA (unsigned int theRGBA) |
std::string | Name () const |
bool | IsNull () const |
bool | IsEqual (const Color &theOther) const |
operator bool () const | |
Static Public Member Functions | |
static std::string | ColorToHex (const Color &theColor) |
static Color | HexToColor (const std::string &theHex) |
Defines an RGBA color.