pleyo.com

WebCore::Color Class Reference

#include <Color.h>

List of all members.

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


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

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 ( int  r,
int  g,
int  b 
) [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::blend ( const Color source  )  const

Color WebCore::Color::blendWithWhite (  )  const

bool WebCore::Color::parseHexColor ( const String name,
RGBA32 rgb 
) [static]


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Wed Nov 21 20:04:20 2007 for Origyn Web Browser by Doxygen 1.5.3

pleyo.com
pleyo.com