#include <Color.h>
Public Member Functions | |
| Color () | |
| Color (RGBA32 col) | |
| Color (int r, int g, int b) | |
| Color (int r, int g, int b, int a) | |
| Color (const String &) | |
| Color (const char *) | |
| String | name () const |
| void | setNamedColor (const String &) |
| bool | isValid () const |
| bool | hasAlpha () const |
| int | red () const |
| int | green () const |
| int | blue () const |
| int | alpha () const |
| RGBA32 | rgb () const |
| void | setRGB (int r, int g, int b) |
| void | setRGB (RGBA32 rgb) |
| void | getRGBA (float &r, float &g, float &b, float &a) const |
| void | getRGBA (double &r, double &g, double &b, double &a) const |
| Color | light () const |
| Color | dark () const |
| Color | blend (const Color &) const |
| Color | blendWithWhite () const |
Static Public Member Functions | |
| static bool | parseHexColor (const String &name, RGBA32 &rgb) |
Static Public Attributes | |
| static const RGBA32 | black = 0xFF000000 |
| static const RGBA32 | white = 0xFFFFFFFF |
| static const RGBA32 | darkGray = 0xFF808080 |
| static const RGBA32 | gray = 0xFFA0A0A0 |
| static const RGBA32 | lightGray = 0xFFC0C0C0 |
| static const RGBA32 | transparent = 0x00000000 |
| WebCore::Color::Color | ( | ) | [inline] |
| WebCore::Color::Color | ( | RGBA32 | col | ) | [inline] |
| WebCore::Color::Color | ( | const String & | name | ) | [explicit] |
| WebCore::Color::Color | ( | const char * | name | ) | [explicit] |
| String WebCore::Color::name | ( | ) | const |
| void WebCore::Color::setNamedColor | ( | const String & | name | ) |
| bool WebCore::Color::isValid | ( | ) | const [inline] |
| bool WebCore::Color::hasAlpha | ( | ) | const [inline] |
| int WebCore::Color::red | ( | ) | const [inline] |
| int WebCore::Color::green | ( | ) | const [inline] |
| int WebCore::Color::blue | ( | ) | const [inline] |
| int WebCore::Color::alpha | ( | ) | const [inline] |
| RGBA32 WebCore::Color::rgb | ( | ) | const [inline] |
| void WebCore::Color::setRGB | ( | RGBA32 | rgb | ) | [inline] |
| void WebCore::Color::getRGBA | ( | float & | r, | |
| float & | g, | |||
| float & | b, | |||
| float & | a | |||
| ) | const |
| void WebCore::Color::getRGBA | ( | double & | r, | |
| double & | g, | |||
| double & | b, | |||
| double & | a | |||
| ) | const |
| Color WebCore::Color::light | ( | ) | const |
| Color WebCore::Color::dark | ( | ) | const |
| Color WebCore::Color::blendWithWhite | ( | ) | const |
const RGBA32 WebCore::Color::black = 0xFF000000 [static] |
const RGBA32 WebCore::Color::white = 0xFFFFFFFF [static] |
const RGBA32 WebCore::Color::darkGray = 0xFF808080 [static] |
const RGBA32 WebCore::Color::gray = 0xFFA0A0A0 [static] |
const RGBA32 WebCore::Color::lightGray = 0xFFC0C0C0 [static] |
const RGBA32 WebCore::Color::transparent = 0x00000000 [static] |