Public Member Functions | Public Attributes | Static Public Attributes

LibGeoDecomp::Color Class Reference

#include <color.h>

Collaboration diagram for LibGeoDecomp::Color:
Collaboration graph

List of all members.

Public Member Functions

 Color ()
 Color (const unsigned char &r, const unsigned char &g, const unsigned char &b)
unsigned char red () const
unsigned char green () const
unsigned char blue () const
bool operator== (const Color &com) const
bool operator!= (const Color &com) const
std::string toString () const

Public Attributes

unsigned rgb

Static Public Attributes

static const Color BLACK
static const Color WHITE
static const Color RED
static const Color GREEN
static const Color BLUE
static const Color CYAN
static const Color MAGENTA
static const Color YELLOW

Constructor & Destructor Documentation

LibGeoDecomp::Color::Color (  )  [inline]

References Color().

Referenced by Color().

LibGeoDecomp::Color::Color ( const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
) [inline]

References rgb.

Member Function Documentation

unsigned char LibGeoDecomp::Color::blue (  )  const [inline]

References rgb.

Referenced by toString().

unsigned char LibGeoDecomp::Color::green (  )  const [inline]

References rgb.

Referenced by toString().

bool LibGeoDecomp::Color::operator!= ( const Color com  )  const [inline]
bool LibGeoDecomp::Color::operator== ( const Color com  )  const [inline]

References rgb.

unsigned char LibGeoDecomp::Color::red (  )  const [inline]

References rgb.

Referenced by toString().

std::string LibGeoDecomp::Color::toString (  )  const [inline]

References blue(), green(), and red().

Member Data Documentation

Referenced by blue(), Color(), green(), operator==(), and red().

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