#include <WCssDecorationStyle>
Public Types | |
| Default | |
| Arrow,. | |
| Auto | |
| Unspecified, default. | |
| CrossHair | |
| Crosshair. | |
| Pointer | |
| Hand. | |
| Move | |
| Move. | |
| Wait | |
| Wait symbol. | |
| Text | |
| Text edit. | |
| Help | |
| Help symbol. | |
| RepeatXY | |
| Repeat horizontally and vertically, default. | |
| RepeatX | |
| Repeat horizontally. | |
| RepeatY | |
| Repeat vertically. | |
| NoRepeat | |
| Do not repeat. | |
| Underline = 0x1 | |
| Underline. | |
| Overline = 0x2 | |
| Overline. | |
| LineThrough = 0x4 | |
| LineThrough. | |
| Blink = 0x8 | |
| Blink. | |
| enum | Cursor { Default, Auto, CrossHair, Pointer, Move, Wait, Text, Help } |
| Cursor style. More... | |
| enum | Repeat { RepeatXY, RepeatX, RepeatY, NoRepeat } |
| How a background image must be repeated. More... | |
| enum | TextDecoration { Underline = 0x1, Overline = 0x2, LineThrough = 0x4, Blink = 0x8 } |
| Text decoration options. More... | |
Public Member Functions | |
| WCssDecorationStyle () | |
| Create a default style. | |
| void | setCursor (Cursor c) |
| Set the cursor style. | |
| Cursor | cursor () const |
| Get the cursor style. | |
| void | setBackgroundColor (WColor color) |
| Set the background color. | |
| WColor | backgroundColor () const |
| Get the background color. | |
| void | setBackgroundImage (const std::string imageHRef, Repeat repeat=RepeatXY, int sides=0) |
| Set a background image URL. | |
| const std::string | backgroundImage () const |
| Get the background image URL. | |
| Repeat | backgroundImageRepeat () const |
| Get the background image repeat. | |
| void | setForegroundColor (WColor color) |
| Set the foreground color. | |
| WColor | foregroundColor () const |
| Get the foreground color. | |
| void | setBorder (WBorder border, int sides=WWidget::All) |
| Set the border style. | |
| WBorder | border () const |
| Get the border style. | |
| void | setFont (const WFont &font) |
| Change the font. | |
| WFont & | font () |
| Get a reference to the font. | |
| void | setTextDecoration (int decoration) |
| Set the text decoration options. | |
| int | textDecoration () const |
| Get the text decoration options. | |
| void WCssDecorationStyle::setBackgroundImage | ( | const std::string | imageHRef, | |
| Repeat | repeat = RepeatXY, |
|||
| int | sides = 0 | |||
| ) |
Set a background image URL.
The image may be placed in a particular location by specifying sides by OR'ing WWidget::Side values together, e.g. (Right | Top).
| void WCssDecorationStyle::setBorder | ( | WBorder | border, | |
| int | sides = WWidget::All | |||
| ) |
Set the border style.
A border may be placed in a particular location by specifying sides by OR'ing WWidget::Side values together, e.g. (Right | Top).
| void WCssDecorationStyle::setTextDecoration | ( | int | decoration | ) |
Set the text decoration options.
You may logically or together any of the options of the TextDecoration enumeration.
The default is 0.
1.4.7