CVD 0.8
|
A colour consisting of red, green, blue and alpha components. More...
#include <argb.h>
Public Member Functions | |
Argb () | |
Argb (T a, T r, T g, T b) | |
template<typename T2 > | |
Argb< T > & | operator= (const Argb< T2 > &c) |
bool | operator== (const Argb< T > &c) const |
bool | operator!= (const Argb< T > &c) const |
Public Attributes | |
T | blue |
T | green |
T | red |
T | alpha |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Argb< T > &x) |
std::ostream & | operator<< (std::ostream &os, const Argb< unsigned char > &x) |
A colour consisting of red, green, blue and alpha components.
T | The datatype of each component |
Argb<T>& CVD::Argb< T >::operator= | ( | const Argb< T2 > & | c | ) | [inline] |
Assignment operator between two different storage types, using the standard casts as necessary.
c | The colour to copy from |
Definition at line 59 of file argb.h.
References CVD::Argb< T >::alpha, CVD::Argb< T >::blue, CVD::Argb< T >::green, and CVD::Argb< T >::red.
Logical equals operator.
Returns true if each component is the same.
c | Argb to compare with |
Definition at line 69 of file argb.h.
References CVD::Argb< T >::alpha, CVD::Argb< T >::blue, CVD::Argb< T >::green, and CVD::Argb< T >::red.
Logical not-equals operator.
Returns true unless each component is the same.
c | Argb to compare with |
Definition at line 74 of file argb.h.
References CVD::Argb< T >::alpha, CVD::Argb< T >::blue, CVD::Argb< T >::green, and CVD::Argb< T >::red.
std::ostream & operator<< | ( | std::ostream & | os, |
const Argb< T > & | x | ||
) | [related] |
std::ostream & operator<< | ( | std::ostream & | os, |
const Argb< unsigned char > & | x | ||
) | [related] |