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