RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Page "Tests:Hierarchy" does not exist. Please create it now, or hit the "back" button in your browser.

Wimp_UpdateWindow

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_UpdateWindow

Wimp_UpdateWindow

(SWI &400C9)
Entry
R1 Pointer to block
Block
+0 Window handle
+4 Work area rectangle minimum x (inclusive)
+8 Work area rectangle minimum y (inclusive)
+12 Work area rectangle maximum x (exclusive)
+16 Work area rectangle maximum 7 (exclusive)
Exit
R0 Corrupt

Use

The purpose of this call is to redraw the parts of a window that needs updating.

Notes

This call is similar to Wimp_GetRectangle, but with some important differences.

  • Not all of the window has to be updated, only the specified rectangular area.
  • Invalid rectangles are not cleared by the Wimp after redrawing using this call.
  • Wimp_UpdateWindow can be called at anytime – not just in response to a Redraw_Window_Request.

This call exits via Wimp_GetRectangle, which specifies the co-ordinates of the rectangular parts needing updating (one at a time).

An of how to use this call is shown in pseudo code form below:

SYS"Wimp_UpdateWindow",,blk TO rectangles
WHILE rectangles
  update the contents of the returned rectangle
  SYS"Wimp_GetRectangle",,blk TO rectangles
ENDWHILE

See also

  • Redraw_Window_Request
  • Wimp_GetRectangle
  • Wimp_RedrawWindow
Created on June 15, 2009 22:48:55 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: The Window Manager SWI Calls, The Window Manager Updating Windows, The Window Manager Dragging, Wimp_BlockCopy, Wimp_ForceRedraw (mark invalid area syntax), Wimp_GetRectangle, Rectangle Data, Wimp_PlotIcon, Wimp_RedrawWindow, Post Rectangle Filter Code

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys