|
claw 1.9.0
|
RGBA pixel. More...
#include <pixel.hpp>
Classes | |
| union | [union].__unnamed0__ |
Public Types | |
| typedef unsigned char | component_type |
| The type of the components of the color. | |
Public Member Functions | |
| rgba_pixel () | |
| Default constructor. | |
| rgba_pixel (const rgb_pixel &that) | |
| Constructor. | |
| rgba_pixel (component_type r, component_type g, component_type b, component_type a) | |
| Constructor. | |
| rgba_pixel (const std::string &c) | |
| Constructor from a color name or code. | |
| rgba_pixel & | operator= (const rgb_pixel &that) |
| Assignement operator. | |
| bool | operator== (const rgba_pixel &that) const |
| Tell if two pixels are equal. | |
| bool | operator!= (const rgba_pixel &that) const |
| Tell if two pixels are different. | |
| component_type | luminosity () const |
| Get the luminosity of the pixel. | |
Public Attributes | |
| union | |
| typedef unsigned char claw::graphic::rgba_pixel::component_type |
| claw::graphic::rgba_pixel::rgba_pixel | ( | ) |
| claw::graphic::rgba_pixel::rgba_pixel | ( | const rgb_pixel & | that | ) |
| claw::graphic::rgba_pixel::rgba_pixel | ( | component_type | r, |
| component_type | g, | ||
| component_type | b, | ||
| component_type | a ) |
|
explicit |
| claw::graphic::rgba_pixel::component_type claw::graphic::rgba_pixel::luminosity | ( | ) | const |
| bool claw::graphic::rgba_pixel::operator!= | ( | const rgba_pixel & | that | ) | const |
| claw::graphic::rgba_pixel & claw::graphic::rgba_pixel::operator= | ( | const rgb_pixel & | that | ) |
| bool claw::graphic::rgba_pixel::operator== | ( | const rgba_pixel & | that | ) | const |