#include <color.hpp>
Public Member Functions | |
Color () | |
Color (int red, int green, int blue, int alpha=0xff) | |
Color (int rgba) | |
Color (const Color &rhs) | |
Color & | operator= (const Color &rhs) |
unsigned int | red () const |
unsigned int | green () const |
unsigned int | blue () const |
unsigned int | alpha () const |
void | set_red (unsigned int r) |
void | set_green (unsigned int g) |
void | set_blue (unsigned int b) |
void | set_alpha (unsigned int a) |
unsigned int | rgba () const |
void | set_bgr (unsigned bgr) |
bool | operator== (Color const &other) const |
bool | operator!= (Color const &other) const |
std::string | to_string () const |
std::string | to_hex_string () const |
mapnik::Color::Color | ( | ) | [inline] |
mapnik::Color::Color | ( | int | red, | |
int | green, | |||
int | blue, | |||
int | alpha = 0xff | |||
) | [inline] |
mapnik::Color::Color | ( | int | rgba | ) | [inline, explicit] |
mapnik::Color::Color | ( | const Color & | rhs | ) | [inline] |
unsigned int mapnik::Color::red | ( | ) | const [inline] |
unsigned int mapnik::Color::green | ( | ) | const [inline] |
unsigned int mapnik::Color::blue | ( | ) | const [inline] |
unsigned int mapnik::Color::alpha | ( | ) | const [inline] |
void mapnik::Color::set_red | ( | unsigned int | r | ) | [inline] |
void mapnik::Color::set_green | ( | unsigned int | g | ) | [inline] |
void mapnik::Color::set_blue | ( | unsigned int | b | ) | [inline] |
void mapnik::Color::set_alpha | ( | unsigned int | a | ) | [inline] |
unsigned int mapnik::Color::rgba | ( | ) | const [inline] |
Referenced by mapnik::text_renderer< T >::render(), and mapnik::Image32::setBackground().
void mapnik::Color::set_bgr | ( | unsigned | bgr | ) | [inline] |
std::string mapnik::Color::to_string | ( | ) | const [inline] |
std::string mapnik::Color::to_hex_string | ( | ) | const [inline] |