h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » Wimp_GetRectangle h2. Wimp_GetRectangle h5. (SWI &400CA) |_<. Entry | | |<^. R1 |Pointer to block to return result | |_<. Exit | | |<^. R0| 0 if no more rectangles | |<^. R1 |Block is updated with [[Rectangle Data|Rectangle Data]] | h4. Use The purpose of this call is to return the details of the next rectangle of the work area to be drawn. h4. Notes This call is used, repeatedly, immediately following a call of either [[Wimp_RedrawWindow|Wimp_RedrawWindow]] or [[Wimp_UpdateWindow|Wimp_UpdateWindow]]. If this call follows an earlier Wimp_RedrawWindow, then the rectangles is also cleared to the background colour of the window. If, however, it follows a Wimp_UpdateWindow call, then the rectangle’s contents are preserved. h4. See also * [[Wimp_RedrawWindow|Wimp_RedrawWindow]] * [[Wimp_UpdateWindow|Wimp_UpdateWindow]] * [[Redraw_Window_Request|Redraw_Window_Request]]