Wt: Wt::WCssRule Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions
Wt::WCssRule Class Reference
Style classes

Abstract rule in a CSS style sheet. More...

`#include <Wt/WCssStyleSheet>`

Inheritance diagram for Wt::WCssRule:
[legend]

List of all members.

## Public Member Functions
virtual | ~WCssRule ()
| Destructor.
const std::string & | selector () const
| Returns the selector.
WCssStyleSheet * | sheet () const
| Returns the style sheet to which this rule belongs.
void | modified ()
| Indicates 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, WObject *parent=0)
| Creates a new CSS rule with given selector.

## Detailed Description

Abstract rule in a CSS style sheet.

A rule presents CSS style properties that are applied to a selected set of elements.

Use WCssTemplateRule if you would like to use a widget as a template for specifying (and updating) a style rule, using the widgets style properties, or WCssTextRule if you wish to directly specify the CSS declarations.

See also:
  WCssStyleSheet

## Member Function Documentation

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::WCssTextRule, and Wt::WCssTemplateRule.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator