#include <style.hh>
Public Types | |
| enum | Shading { SHADING_NORMAL, SHADING_INVERSE, SHADING_DARK, SHADING_LIGHT, SHADING_NUM } |
Public Member Functions | |
| void | ref () |
| void | unref () |
Static Public Member Functions | |
| static Color * | create (Layout *layout, int color) |
Protected Member Functions | |
| Color (int color) | |
| virtual | ~Color () |
| int | shadeColor (int color, Shading shading) |
Private Member Functions | |
| void | remove (dw::core::Layout *layout) |
| int | shadeColor (int color, int d) |
Private Attributes | |
| int | refCount |
| dw::core::style::Color::Color | ( | int | color | ) | [inline, protected] |
References refCount.
| dw::core::style::Color::~Color | ( | ) | [protected, virtual] |
| void dw::core::style::Color::ref | ( | ) | [inline] |
References refCount.
Referenced by dw::core::Layout::setBgColor(), and dw::core::style::Style::Style().
| void dw::core::style::Color::remove | ( | dw::core::Layout * | layout | ) | [private] |
| int dw::core::style::Color::shadeColor | ( | int | color, | |
| Shading | shading | |||
| ) | [protected] |
References lout::misc::assertNotReached(), shadeColor(), SHADING_DARK, SHADING_INVERSE, SHADING_LIGHT, and SHADING_NORMAL.
| int dw::core::style::Color::shadeColor | ( | int | color, | |
| int | d | |||
| ) | [private] |
| void dw::core::style::Color::unref | ( | ) | [inline] |
References refCount.
Referenced by dw::core::Layout::setBgColor(), dw::core::Layout::~Layout(), and dw::core::style::Style::~Style().
int dw::core::style::Color::refCount [private] |
1.5.9