Wt::WRectArea Class Reference

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

#include <Wt/WRectArea>

Inheritance diagram for Wt::WRectArea:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WRectArea ()
 Default constructor.
 WRectArea (int x, int y, int width, int height)
 Construct a rectangular area with given geometry.
 WRectArea (const WRectF &rect)
 Construct a rectangular area with given geometry.
void setX (int x)
 Set the top-left X coordinate.
int x () const
 Returns the top-left X coordinate.
void setY (int y)
 Set the top-left Y coordinate.
int y () const
 Returns the top-left Y coordinate.
void setWidth (int width)
 Set the width.
int width () const
 Returns the width.
void setHeight (int height)
 Set the height.
int height () const
 Returns the height.


Detailed Description

A rectangular interactive area in a widget.

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

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

WCircleArea, WPolygonArea


Constructor & Destructor Documentation

Wt::WRectArea::WRectArea (  ) 

Default constructor.

The default constructor creates a rectangular area spans the whole widget.

Wt::WRectArea::WRectArea ( int  x,
int  y,
int  width,
int  height 
)

Construct a rectangular area with given geometry.

The arguments are in pixel units.

Wt::WRectArea::WRectArea ( const WRectF rect  ) 

Construct a rectangular area with given geometry.

The rect argument is in pixel units.


Generated on Mon Nov 3 15:01:02 2008 for Wt by doxygen 1.5.6