Declaration (see MWindow.h):
void fillRect(const MRect& rect);
Fills rectangular shape bound by the specified rect (integral coordinates only).
Position and size of the rectangle to fill (rounded out).
The filling parameters (e.g. colors) are specified by the preceding setFillSettings. The rect is rounded out to the nearest integral rect for efficiency and consistency with a window size (which is always integral). To paint a rect with non-integral coordinates use fillPoly.
- See Painting functions for details about the coordinate system
- To paint just a rectangle outline, use drawRect
- fillRect is more efficient and convenient than fillPoly call with four lines (i.e. eight points), but fillPoly works with non-integral coordinates as well
Let us know
Please Contact us to report any errors on this page, or to suggest any improvements.