Wt
3.7.1
|
Abstract rule in a CSS style sheet. More...
#include <Wt/WCssStyleSheet>
Public Member Functions | |
virtual | ~WCssRule () |
Destructor. | |
void | setSelector (const std::string &selector) |
Sets the selector. More... | |
virtual 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 std::string | declarations ()=0 |
Returns the declarations. More... | |
![]() | |
WObject (WObject *parent=0) | |
Create a WObject with a given parent object. More... | |
virtual | ~WObject () |
Destructor. More... | |
virtual const std::string | id () const |
Returns the (unique) identifier for this object. More... | |
virtual void | setObjectName (const std::string &name) |
Sets an object name. More... | |
virtual std::string | objectName () const |
Returns the object name. More... | |
void | resetLearnedSlots () |
Resets learned stateless slot implementations. More... | |
template<class T > | |
void | resetLearnedSlot (void(T::*method)()) |
Resets a learned stateless slot implementation. More... | |
template<class T > | |
WStatelessSlot * | implementStateless (void(T::*method)()) |
Declares a slot to be stateless and learn client-side behaviour on first invocation. More... | |
template<class T > | |
WStatelessSlot * | implementStateless (void(T::*method)(), void(T::*undoMethod)()) |
Declares a slot to be stateless and learn client-side behaviour in advance. More... | |
void | isNotStateless () |
Marks the current function as not stateless. More... | |
template<class T > | |
WStatelessSlot * | implementJavaScript (void(T::*method)(), const std::string &jsCode) |
Provides a JavaScript implementation for a method. More... | |
void | addChild (WObject *child) |
Adds a child object. More... | |
virtual void | removeChild (WObject *child) |
Removes a child object. More... | |
const std::vector< WObject * > & | children () const |
Returns the children. | |
WObject * | parent () const |
Returns the parent object. | |
Protected Member Functions | |
WCssRule (const std::string &selector, WObject *parent=0) | |
Creates a new CSS rule with given selector. | |
![]() | |
virtual WStatelessSlot * | getStateless (Method method) |
On-demand stateless slot implementation. More... | |
Additional Inherited Members | |
![]() | |
typedef void(WObject::* | Method) () |
Typedef for a WObject method without arguments. | |
![]() | |
static WObject * | sender () |
Returns the sender of the current slot call. More... | |
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.
|
pure virtual |
Returns the declarations.
This is a semi-colon separated list of CSS declarations.
Implemented in Wt::WCssTextRule, and Wt::WCssTemplateRule.
void Wt::WCssRule::setSelector | ( | const std::string & | selector | ) |
Sets the selector.