#include <Wt/WCssStyleSheet>

Public Member Functions | |
| WCssTemplateRule (const std::string &selector) | |
| Create a CSS rule with a given selector. | |
| WWidget * | templateWidget () |
| Returns the widget used as a template. | |
| const std::string | declarations () |
| Returns the declarations. | |
This is a CSS rule whose CSS style properties are defined based on properties of a template widget. When modifying the template widget, these changes are reflected on the CSS rule and thus all widgets that have this CSS rule.
| Wt::WCssTemplateRule::WCssTemplateRule | ( | const std::string & | selector | ) |
Create a CSS rule with a given selector.
The selector should be a valid CSS selector.
| WWidget * Wt::WCssTemplateRule::templateWidget | ( | ) |
Returns the widget used as a template.
Various properties of the widget are reflected in the CSS style:
| const std::string Wt::WCssTemplateRule::declarations | ( | ) | [virtual] |
Returns the declarations.
This is a semi-colon separated list of CSS declarations.
Implements Wt::WCssRule.
1.5.6