Wt::WColor Class Reference

Style class for a color. More...

#include <WColor>

List of all members.

Public Member Functions

 WColor ()
 A default color (which is some other color or a transparent color depending on the context).
 WColor (int r, int g, int b)
 Color with given red/green/blue values (0-255).
 WColor (const WString &name)
 Color with a CSS name.
void setRgb (int r, int g, int b)
 Set red/green/blue values (0-255).
void setName (const WString &name)
 Set CSS name.
bool isDefault () const
 Is a default color ?
int red () const
 Get green component.
int green () const
 Get green component.
int blue () const
 Get blue component.
const WStringname () const
 Get CSS name.


Detailed Description

Style class for a color.


Member Function Documentation

int Wt::WColor::blue (  )  const [inline]

Get blue component.

Only available when it was set with setRgb or WColor(int r, int g, int b).

int Wt::WColor::green (  )  const [inline]

Get green component.

Only available when it was set with setRgb or WColor(int r, int g, int b).

const WString& Wt::WColor::name (  )  const [inline]

Get CSS name.

Only available when it was set with setName or WColor(const std::string name).

int Wt::WColor::red (  )  const [inline]

Get green component.

Only available when it was set with setRgb or WColor(int r, int g, int b).


The documentation for this class was generated from the following files:
Generated on Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7