WebCore::Color Class Reference
#include <Color.h>
List of all members.
|
Public Member Functions |
| int | alpha () const |
| Color | blend (const Color &) const |
| Color | blendWithWhite () const |
| int | blue () const |
| | Color (const char *) |
| | Color (const String &) |
| | Color (int r, int g, int b, int a) |
| | Color (int r, int g, int b) |
| | Color (RGBA32 col) |
| | Color () |
| Color | dark () const |
| void | getRGBA (double &r, double &g, double &b, double &a) const |
| void | getRGBA (float &r, float &g, float &b, float &a) const |
| int | green () const |
| bool | hasAlpha () const |
| bool | isValid () const |
| Color | light () const |
| String | name () const |
| int | red () const |
| RGBA32 | rgb () const |
| void | setNamedColor (const String &) |
| void | setRGB (RGBA32 rgb) |
| void | setRGB (int r, int g, int b) |
Static Public Member Functions |
| static bool | parseHexColor (const String &name, RGBA32 &rgb) |
Static Public Attributes |
| static const RGBA32 | black = 0xFF000000 |
| static const RGBA32 | darkGray = 0xFF808080 |
| static const RGBA32 | gray = 0xFFA0A0A0 |
| static const RGBA32 | lightGray = 0xFFC0C0C0 |
| static const RGBA32 | transparent = 0x00000000 |
| static const RGBA32 | white = 0xFFFFFFFF |
Detailed Description
Definition at line 64 of file Color.h.
Constructor & Destructor Documentation
| WebCore::Color::Color |
( |
|
) |
[inline] |
| WebCore::Color::Color |
( |
RGBA32 |
col |
) |
[inline] |
| WebCore::Color::Color |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b | |
|
) |
| | [inline] |
| WebCore::Color::Color |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a | |
|
) |
| | [inline] |
| WebCore::Color::Color |
( |
const String & |
name |
) |
[explicit] |
| WebCore::Color::Color |
( |
const char * |
name |
) |
[explicit] |
Member Function Documentation
| int WebCore::Color::alpha |
( |
|
) |
const [inline] |
| Color WebCore::Color::blend |
( |
const Color & |
source |
) |
const |
| Color WebCore::Color::blendWithWhite |
( |
|
) |
const |
| int WebCore::Color::blue |
( |
|
) |
const [inline] |
| Color WebCore::Color::dark |
( |
|
) |
const |
| void WebCore::Color::getRGBA |
( |
double & |
r, |
|
|
double & |
g, |
|
|
double & |
b, |
|
|
double & |
a | |
|
) |
| | const |
| void WebCore::Color::getRGBA |
( |
float & |
r, |
|
|
float & |
g, |
|
|
float & |
b, |
|
|
float & |
a | |
|
) |
| | const |
| int WebCore::Color::green |
( |
|
) |
const [inline] |
| bool WebCore::Color::hasAlpha |
( |
|
) |
const [inline] |
| bool WebCore::Color::isValid |
( |
|
) |
const [inline] |
| Color WebCore::Color::light |
( |
|
) |
const |
| String WebCore::Color::name |
( |
|
) |
const |
| bool WebCore::Color::parseHexColor |
( |
const String & |
name, |
|
|
RGBA32 & |
rgb | |
|
) |
| | [static] |
| int WebCore::Color::red |
( |
|
) |
const [inline] |
| RGBA32 WebCore::Color::rgb |
( |
|
) |
const [inline] |
| void WebCore::Color::setNamedColor |
( |
const String & |
name |
) |
|
| void WebCore::Color::setRGB |
( |
RGBA32 |
rgb |
) |
[inline] |
| void WebCore::Color::setRGB |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b | |
|
) |
| | [inline] |
Member Data Documentation
The documentation for this class was generated from the following files: