Wt::WShadow Class Reference
[Painting system]

Class that defines a shadow style. More...

#include <Wt/WShadow>

List of all members.

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 WColorcolor () const
 Returns the shadow color.
void setBlur (double blur)
 Sets the blur.
const double blur () const
 Returns the blur.


Detailed Description

Class that defines a shadow style.

See also:
WPainter::setShadow()

Constructor & Destructor Documentation

Wt::WShadow::WShadow (  ) 

Default constructor.

Constructs a disabled shadow effect (offsetX = offsetY = blur = 0)


Member Function Documentation

bool Wt::WShadow::operator== ( const WShadow other  )  const

Comparison operator.

Returns true if the shadows are exactly the same.

bool Wt::WShadow::operator!= ( const WShadow other  )  const

Comparison operator.

Returns true if the shadows are different.

double Wt::WShadow::offsetX (  )  const [inline]

Returns the shadow X offset.

See also:
setOffsets()

double Wt::WShadow::offsetY (  )  const [inline]

Returns the shadow Y offset.

See also:
setOffsets()

void Wt::WShadow::setColor ( const WColor color  ) 

Changes the shadow color.

See also:
color()

const WColor& Wt::WShadow::color (  )  const [inline]

Returns the shadow color.

See also:
setColor()

void Wt::WShadow::setBlur ( double  blur  ) 

Sets the blur.

See also:
blur()

const double Wt::WShadow::blur (  )  const [inline]

Returns the blur.

See also:
setBlur()


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