mapnik::Color Class Reference

#include <color.hpp>

List of all members.

Public Member Functions

 Color ()
 Color (int red, int green, int blue, int alpha=0xff)
 Color (int rgba)
 Color (const Color &rhs)
Coloroperator= (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


Constructor & Destructor Documentation

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]


Member Function Documentation

unsigned int mapnik::Color::alpha (  )  const [inline]

unsigned int mapnik::Color::blue (  )  const [inline]

unsigned int mapnik::Color::green (  )  const [inline]

bool mapnik::Color::operator!= ( Color const &  other  )  const [inline]

References abgr_.

Color& mapnik::Color::operator= ( const Color rhs  )  [inline]

References abgr_.

bool mapnik::Color::operator== ( Color const &  other  )  const [inline]

References abgr_.

unsigned int mapnik::Color::red (  )  const [inline]

unsigned int mapnik::Color::rgba (  )  const [inline]

void mapnik::Color::set_alpha ( unsigned int  a  )  [inline]

void mapnik::Color::set_bgr ( unsigned  bgr  )  [inline]

void mapnik::Color::set_blue ( unsigned int  b  )  [inline]

void mapnik::Color::set_green ( unsigned int  g  )  [inline]

void mapnik::Color::set_red ( unsigned int  r  )  [inline]

std::string mapnik::Color::to_hex_string (  )  const [inline]

std::string mapnik::Color::to_string (  )  const [inline]


The documentation for this class was generated from the following file:

Generated for Mapnik by doxygen 1.5.8