Public Member Functions | |
Constructor / Destructor | |
CP_ARGBColor () | |
Constructor. | |
CP_ARGBColor (float inRed, float inGreen, float inBlue, float inAlpha) | |
CP_ARGBColor (const CP_ARGBColor &inColor) | |
CP_ARGBColor (const CP_RGBColor &inColor) | |
virtual | ~CP_ARGBColor () |
Destructor. | |
Components | |
float | red () const |
float | green () const |
float | blue () const |
float | alpha () const |
Getters | |
CP_RGBColor | GetRGBColor () |
CP_RGBColor | GetRGBColor () const |
Operators | |
bool | operator== (const CP_ARGBColor &inColor) const |
bool | operator!= (const CP_ARGBColor &inColor) const |
CP_ARGBColor & | operator= (const CP_ARGBColor &inColor) |
CP_ARGBColor & | operator= (const CP_RGBColor &inColor) |
Setters | |
void | Set (float inRed, float inGreen, float inBlue, float inAlpha) |
void | SetAlpha (float inAlpha) |
void | Set (const CP_ARGBColor &inColor) |
void | Set (const CP_RGBColor &inColor) |
Protected Attributes | |
float | fRed |
float | fGreen |
float | fBlue |
float | fAlpha |
|
Constructor. Sets the color to black as the default color with full alpha.
|
|
Constructor.
|
|
Constructor. Sets the colors from the passed in CP_ARGBColor.
|
|
Constructor. Sets the colors from the passed in CP_RGBColor.
|
|
Destructor.
|
|
Returns the red component of the color.
|
|
Returns the green component of the color.
|
|
Returns the blue component of the color.
|
|
Returns the alpha component of the color.
|
|
Returns the the color as a CP_RGBColor.
|
|
Returns the the color as a CP_RGBColor (const version).
|
|
Equality operator. Returns true if the passed in color is the same as this color.
|
|
Inequality operator. Returns true if the passed in color is not the same as this color.
|
|
Assignment operation. Copies the color from the passed in CP_ARGBColor to this one.
|
|
Assignment operator. Assigns the color from the passed in CP_RGBColor to this one.
|
|
Sets the color components from the passed in values.
|
|
Sets the alpha component of the color.
|
|
Sets the color values from the passed in CP_ARGBColor.
|
|
Sets the color values from the passed in CP_RGBColor.
|
|
|
|
The red color component. |
|
The green color component. |
|
The blue color component. |