#include <WColor>
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 WString & | name () const |
| Get CSS 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).
| 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).
1.5.3