#include <color.hh>

Public Member Functions | |
| color (void) | |
| Default constructor. | |
| color (int red, int green, int blue) | |
| RGB color constructor. | |
| color (const std::string &clr) | |
| Name color constructor. | |
| ~color (void) | |
| Destructor. | |
| color * | clone (void) const |
| Clone alignment. | |
| bool | isDefault (void) const |
| void | putAttr (writer &w) const |
| Write the color attribure. | |
| void | setDefault (void) |
| Set default color. | |
| void | setRGB (int red, int green, int blue) |
| Set the color with RGB. | |
| void | setColorName (const std::string &name) |
| Set the color by name. | |
| bool | operator== (const color &x) const |
| Compare operator. | |
Text color attribute class.
| html::color::color | ( | void | ) |
| html::color::color | ( | int | red, | |
| int | green, | |||
| int | blue | |||
| ) |
| html::color::color | ( | const std::string & | clr | ) |
| color* html::color::clone | ( | void | ) | const [virtual] |
| bool html::color::isDefault | ( | void | ) | const [virtual] |
Test whether the color is the default value.
Reimplemented from html::attrib.
| void html::color::putAttr | ( | writer & | w | ) | const [virtual] |
Write the color attribure.
Write the color attribute to the specified html writer.
| w | Html writer reference. |
Reimplemented from html::attrib.
| void html::color::setRGB | ( | int | red, | |
| int | green, | |||
| int | blue | |||
| ) |
| void html::color::setColorName | ( | const std::string & | name | ) |
| bool html::color::operator== | ( | const color & | x | ) | const |
1.5.4