Wt
4.10.3
|
A value class that defines a shadow style. More...
#include <Wt/WShadow.h>
Public Member Functions | |
WShadow () | |
Default constructor. | |
WShadow (double dx, double dy, const WColor &color, double blur) | |
Constructs a shadow with given offset and color. | |
bool | operator== (const WShadow &other) const |
Comparison operator. | |
bool | operator!= (const WShadow &other) const |
Comparison operator. | |
bool | none () const |
Returns whether the shadow effect is nihil. | |
void | setOffsets (double dx, double dy) |
Sets the shadow offset. | |
double | offsetX () const |
Returns the shadow X offset. | |
double | offsetY () const |
Returns the shadow Y offset. | |
void | setColor (const WColor &color) |
Changes the shadow color. | |
const WColor & | color () const |
Returns the shadow color. | |
void | setBlur (double blur) |
Sets the blur. | |
double | blur () const |
Returns the blur. | |
A value class that defines a shadow style.
Wt::WShadow::WShadow | ( | ) |
Default constructor.
Constructs a disabled shadow effect (offsetX = offsetY = blur = 0)
Returns the shadow color.
double Wt::WShadow::offsetX | ( | ) | const |
Returns the shadow X offset.
double Wt::WShadow::offsetY | ( | ) | const |
Returns the shadow Y offset.
Comparison operator.
Returns true
if the shadows are different.
Comparison operator.
Returns true
if the shadows are exactly the same.