#include <Wt/WCssStyleSheet>
Public Member Functions | |
virtual | ~WCssRule () |
Delete a CSS rule. | |
const std::string & | selector () const |
Returns the selector. | |
WCssStyleSheet * | sheet () const |
Returns the style sheet to which this rule belongs. | |
void | modified () |
Indicate that the rule has changed and needs updating. | |
virtual const std::string | declarations ()=0 |
Returns the declarations. | |
Protected Member Functions | |
WCssRule (const std::string &selector) | |
Create a new CSS rule with given selector. |
A rule presents CSS style properties that are applied to a selected set of elements.
Use WCssTemplateRule if you would like to use a template widget for specifying (and updating) the style through the WWidget API, or WCssTextRule if you want to specify the CSS text declarations directly.
void Wt::WCssRule::modified | ( | ) |
Indicate that the rule has changed and needs updating.
This will result in updateDomElement() to be called, to update the stylesheet rule.
virtual const std::string Wt::WCssRule::declarations | ( | ) | [pure virtual] |
Returns the declarations.
This is a semi-colon separated list of CSS declarations.
Implemented in Wt::WCssTemplateRule, and Wt::WCssTextRule.