Wt::WCssTextRule Class Reference
[Style classes]

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

#include <Wt/WCssStyleSheet>

Inheritance diagram for Wt::WCssTextRule:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WCssTextRule (const std::string &selector, const WString &declarations)
 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.


Generated on Thu May 20 18:14:42 2010 for Wt by doxygen 1.5.6