highlight::ElementStyle Class Reference
The class stores the basic text formatting properties.
More...
List of all members.
Detailed Description
The class stores the basic text formatting properties.
- Author:
- Andre Simon
Constructor & Destructor Documentation
highlight::ElementStyle::ElementStyle |
( |
const Colour & |
col, |
|
|
bool |
b, |
|
|
bool |
i, |
|
|
bool |
u | |
|
) |
| | |
Constructor
- Parameters:
-
| col | Style colour |
| b | Bold flag |
| i | Italic flag |
| u | Underline flag |
highlight::ElementStyle::ElementStyle |
( |
const string & |
elementStyleString |
) |
|
Constuctor
- Parameters:
-
| elementStyleString | String with formatting information (eg "00 aa ff bold") |
highlight::ElementStyle::ElementStyle |
( |
|
) |
|
highlight::ElementStyle::ElementStyle |
( |
const ElementStyle & |
other |
) |
[inline] |
Member Function Documentation
Colour highlight::ElementStyle::getColour |
( |
|
) |
const |
bool highlight::ElementStyle::isBold |
( |
|
) |
const |
bool highlight::ElementStyle::isItalic |
( |
|
) |
const |
bool highlight::ElementStyle::isUnderline |
( |
|
) |
const |
void highlight::ElementStyle::set |
( |
const string & |
elementStyleString |
) |
|
initialize object
- Parameters:
-
| elementStyleString | String which contains formatting attributes (Format: "color attr" where color can be HTML hex notation or a hex RGB tuple (ie "#2244ff" or "22 44 ff") attr can be a combination of "italic, "bold" and "underline") |
Referenced by highlight::DocumentStyle::load().
void highlight::ElementStyle::setBold |
( |
bool |
b |
) |
[inline] |
void highlight::ElementStyle::setColour |
( |
const Colour & |
col |
) |
[inline] |
- Parameters:
-
| col | colour of this element |
void highlight::ElementStyle::setItalic |
( |
bool |
b |
) |
[inline] |
void highlight::ElementStyle::setUnderline |
( |
bool |
b |
) |
[inline] |
The documentation for this class was generated from the following files: