#include <Wt/WRectArea>

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. | |
The area may be added to a WImage or WPaintedWidget. The rectangle is specified in pixel coordinates.
| 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.
1.5.6