#include <Wt/WCssStyleSheet>
Public Member Functions | |
| WCssStyleSheet () | |
| Create a new empty style sheet. | |
| ~WCssStyleSheet () | |
| Destroy a style sheet, and all rules in it. | |
| void | addRule (const std::string &selector, const WCssDecorationStyle &style, const std::string &ruleName=std::string()) |
| Add a decoration rule. | |
| void | addRule (const std::string &selector, const WString &declarations, const std::string &ruleName=std::string()) |
| Add a decoration rule. | |
| bool | isDefined (const std::string &ruleName) const |
| Returns if a rule was already defined in this style sheet. | |
| void Wt::WCssStyleSheet::addRule | ( | const std::string & | selector, | |
| const WCssDecorationStyle & | style, | |||
| const std::string & | ruleName = std::string() | |||
| ) |
Add a decoration rule.
Add a rule using the CSS selector selector, with styles specified in style.
Optionally, you may give a ruleName, which may later be used to check if the rule was already defined.
| void Wt::WCssStyleSheet::addRule | ( | const std::string & | selector, | |
| const WString & | declarations, | |||
| const std::string & | ruleName = std::string() | |||
| ) |
Add a decoration rule.
Add a rule using the CSS selector selector, with CSS declarations in declarations. These declarations must be a list separated by semi-colons (;).
Optionally, you may give a ruleName, which may later be used to check if the rule was already defined.
| bool Wt::WCssStyleSheet::isDefined | ( | const std::string & | ruleName | ) | const |
Returns if a rule was already defined in this style sheet.
Returns whether a rule was added with the given ruleName.
1.5.3