Wt  3.3.0
Public Member Functions
Wt::WCssTextRule Class Reference

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, 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

Generated on Mon Apr 8 2013 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1