[gtkada] Delaying screen updates for drawing area

Emmanuel Briot briot at gnat.com
Wed Apr 4 10:13:43 CEST 2001


Kay M writes:
 > is is possible to some how 'freeze' or delay the screeen updating of the 
 > drawing area widget so that it can be worked on then set to update the 
 > display ?....

This is certainly not feasible, if you think about it:

A Gtk_Drawing_Area is basically just a buffer in the video memory, that is
directly visible on the screen.
Every time the widget needs to be redrawn (for instance because part of it was
obscured by some other window that was moved away), the pixels in this buffer
are simply displayed on the screen.

If the widget could be somehow be frozen, then it couldn't be refreshed on the
screen, and that would result in a clumsy interface.

As before, the solution is to use double-buffer. You really seem to have
something against them. Any particular reason ?

Emmanuel




More information about the gtkada mailing list