Wt::WCircleArea Class Reference

A circular interactive area in a widget. More...

#include <Wt/WCircleArea>

Inheritance diagram for Wt::WCircleArea:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WCircleArea ()
 Default constructor.
 WCircleArea (int x, int y, int radius)
 Construct a circular area with given geometry.
void setCenter (const WPoint &point)
 Set the center.
void setCenter (const WPointF &point)
 Set the center.
void setCenter (int x, int y)
 Set the center.
int centerX () const
 Returns the center X coordinate.
int centerY () const
 Returns the center Y coordinate.
void setRadius (int radius)
 Set the radius.
int radius () const
 Returns the radius.


Detailed Description

A circular interactive area in a widget.

The area may be added to a WImage or WPaintedWidget. The circle is specified in pixel coordinates.

See also:
WImage::addArea(), WPaintedWidget::addArea()

WRectArea, WPolygonArea


Constructor & Destructor Documentation

Wt::WCircleArea::WCircleArea (  ) 

Default constructor.

Specifies a circular area with center (0, 0) and radius 0.

Wt::WCircleArea::WCircleArea ( int  x,
int  y,
int  radius 
)

Construct a circular area with given geometry.

The arguments are in pixel units.


Generated on Fri Jul 25 17:56:37 2008 for Wt by doxygen 1.5.3