Stg::Color Class Reference

#include <stage.hh>

List of all members.

Public Member Functions

 Color ()
 Color (const std::string &name)
 Color (float r, float g, float b, float a=1.0)
bool operator!= (const Color &other)
bool operator== (const Color &other)
void Print (const char *prefix)

Static Public Member Functions

static Color RandomColor ()

Public Attributes

float a
float b
float g
float r

Constructor & Destructor Documentation

Color::Color ( float  r,
float  g,
float  b,
float  a = 1.0 
)
Color::Color ( const std::string &  name  ) 

Look up the color in the X11-style database. If the color is not found in the database, a cheerful red color will be used instead.

Color::Color (  ) 

Member Function Documentation

bool Color::operator!= ( const Color other  ) 
bool Color::operator== ( const Color other  ) 
void Color::Print ( const char *  prefix  ) 
Color Color::RandomColor (  )  [static]

Member Data Documentation


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

Generated on Tue Oct 20 15:42:06 2009 for Stage by  doxygen 1.6.1