Wt::WColor Class Reference

A style class for specifying 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, int a=255)
 Color with given red/green/blue values (0-255).
 WColor (const WString &name)
 Color with a CSS name.
 WColor (GlobalColor name)
 Predefined color.
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.
int alpha () const
 Get alpha component.
const WStringname () const
 Get CSS name.


Detailed Description

A style class for specifying a color.

Member Function Documentation

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).

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).

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).

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

Get CSS name.

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


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3