OOFILE  1.9
Public Types | Public Member Functions | List of all members
oofColor Class Reference

Cross-platform color specification class. More...

#include <oofcolor.h>

Public Types

enum  eColor {
  White, Yellow, DarkYellow, Red,
  DarkRed, Magenta, DarkMagenta, Blue,
  DarkBlue, Cyan, DarkCyan, Green,
  DarkGreen, Gray, DarkGray, Black
}
 

Public Member Functions

int blue () const
 
const RGBColor & color () const
 
void extract (std::ostream &) const
 
int green () const
 
 oofColor (unsigned int inRed=0, unsigned int inGreen=0, unsigned int inBlue=0)
 
 oofColor (const oofColor &)
 
 oofColor (const oofColor *)
 
 oofColor (const eColor)
 
 operator const RGBColor () const
 
 operator const RGBColor * () const
 
int red () const
 
void set (const RGBColor color)
 
void set (const eColor color)
 
void set (unsigned int R, unsigned int G, unsigned int B)
 

Detailed Description

Cross-platform color specification class.

Definition at line 123 of file oofcolor.h.

Member Enumeration Documentation

Enumerator
White 
Yellow 
DarkYellow 
Red 
DarkRed 
Magenta 
DarkMagenta 
Blue 
DarkBlue 
Cyan 
DarkCyan 
Green 
DarkGreen 
Gray 
DarkGray 
Black 

Definition at line 125 of file oofcolor.h.

Constructor & Destructor Documentation

oofColor::oofColor ( unsigned int  inRed = 0,
unsigned int  inGreen = 0,
unsigned int  inBlue = 0 
)

Definition at line 362 of file oofcolor.cpp.

References set().

oofColor::oofColor ( const oofColor rhs)

Definition at line 368 of file oofcolor.cpp.

oofColor::oofColor ( const oofColor rhs)

Definition at line 374 of file oofcolor.cpp.

oofColor::oofColor ( const eColor  rhs)

Definition at line 380 of file oofcolor.cpp.

References set().

Member Function Documentation

int oofColor::blue ( void  ) const
inline

Definition at line 235 of file oofcolor.h.

Referenced by extract().

const RGBColor & oofColor::color ( ) const

Definition at line 389 of file oofcolor.cpp.

Referenced by set().

void oofColor::extract ( std::ostream &  ) const

Definition at line 521 of file oofcolor.cpp.

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

Referenced by oofRepTextStyle2CSS::emitCSSstyle(), and operator<<().

int oofColor::green ( void  ) const
inline

Definition at line 222 of file oofcolor.h.

Referenced by extract().

oofColor::operator const RGBColor ( ) const

Definition at line 401 of file oofcolor.cpp.

oofColor::operator const RGBColor * ( ) const

Definition at line 395 of file oofcolor.cpp.

int oofColor::red ( void  ) const
inline

Definition at line 209 of file oofcolor.h.

Referenced by oofGeoColumn::DrawSelf(), oofGeoBar::DrawSelf(), and extract().

void oofColor::set ( const RGBColor  color)

Definition at line 431 of file oofcolor.cpp.

References color().

Referenced by oofColor().

void oofColor::set ( const eColor  color)
void oofColor::set ( unsigned int  R,
unsigned int  G,
unsigned int  B 
)

Definition at line 502 of file oofcolor.cpp.


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