Wt: Wt::WCssTextRule Class Reference

Wt 3.3.0

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

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::WCssTextRule Class Reference
Style classes

A CSS rule specified directly using CSS declarations. More...

`#include <Wt/WCssStyleSheet>`

Inheritance diagram for Wt::WCssTextRule:
[legend]

List of all members.

## Public Member Functions
| WCssTextRule (const std::string &selector, const WString &declarations, WObject *parent=0)
| Creates a CSS rule with a given selector and declarations.
const std::string | declarations ()
| Returns the declarations.

## Detailed Description

A CSS rule specified directly using CSS declarations.

Usage example:

     Wt::WCssTextRule *styleRule = new Wt::WCssTextRule(".MyWidget .item", "width: 100px; cursor: pointer;");
     Wt::WApplication::instance()->styleSheet().addRule(styleRule);

See also:
  WCssStyleSheet

## Member Function Documentation

const std::string Wt::WCssTextRule::declarations | ( |  | ) | `[virtual]`

Returns the declarations.

This is a semi-colon separated list of CSS declarations.

Implements Wt::WCssRule.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator