Hi List,
Is there
any way to defer (re)drawing of an output-pane?
I find myself
often using this pattern: an output-pane descendent has a read-only
property, and a setf method, which sets the slot and calls
gp:invalidate-rectangle on the pane. While this works well, if the
calling code wants to update multiple slots in the pane, it will be
redrawn several times, which is unefficient.
The documentation
for capi:with-atomic-redisplay explicitly states that it does NOT defer
GP drawing operations, but perhaps there is some other (undocumented?)
function?
Of course, one way would be to use a wrapper function,
or override invalidate-rectangle for the pane in question. Using a
wrapper function would require the calling code to be changed everywhere
throughout the project, which would be tedious and error-prone.
Overriding invalidate-rectangle would be more elegant, but I am not sure
if it would have side effects that I haven't counted for.
Any
suggestions?
Thanks!
Erik
_______________________________________________
Lisp
Hug - the mailing list for LispWorks users
lisp-hug@lispworks.comhttp://www.lispworks.com/support/lisp-hug.html