| Allegro CL version 6.2 Unrevised from 6.1 |
A class of window that provides automatic backing-store. When things
are drawn on a bitmap-pane
, the window stores
everything that has been drawn in an unseen memory bitmap (which is
similar to a bitmap-stream
). When the window is
later uncovered, the built-in redisplay-window method for bitmap-pane
s copies the
stored image back to the visible window.
This built-in behavior refreshes the window more quickly than would a
non-trivial custom redisplay-window method that
redraws everything from scratch. It also allows the application to add
to the drawing at any time rather than encapsulating the drawing code
into a custom redisplay-window method as
usual. (An application should never add a redisplay-window method to a
bitmap-pane
class.)
The drawback is that significant memory is required for the memory
bitmap. Usually it is best to instead use a more general type of
window such as a frame-window
or non-refreshing-window
, unless the
quicker redisplay provided by the backing-store is needed.
A special technique for switching a bitmap-pane
to a completely new
drawing very quickly is described under with-delayed-redraw, with an
example.
Typically this class is instantiated indirectly by creating a bitmap-window
, whose
frame-with-single-child
features
are recommended when a toolbar or status-bar is to be added to the
window. Otherwise, a title-bar and/or border could be added directly
to a standalone bitmap-pane
if these options are
explicitly specified when calling make-window.
Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.
| Allegro CL version 6.2 Unrevised from 6.1 |