register-collecting-blit in Global Graphics and Screen
Registers a blit to occur when garbage collection starts or ends.
(register-collecting-blit -> void
canvas x y w h on off on-x on-y off-x off-y)
canvas : canvas% object
x : real number
y : real number
w : non-negative real number
h : non-negative real number
on : bitmap% object
off : bitmap% object
on-x = : real number
0
on-y = : real number
0
off-x = : real number
0
off-y = : real number0
When garbage collection starts,
(send (send
is called. When garbage collection ends,
canvas get-dc) draw-bitmap-section
on on-x on-y x y w h)(send (send
is called. If canvas get-dc) draw-bitmap-section
off off-x off-y x y w h)canvas's device context has a scale, the scale may
or may not be temporarily disabled during the bitmap drawing.
The canvas is registered weakly, so it will be automatically
unregistered if the canvas becomes invisible and inaccessible.
Multiple registrations can be installed for the same canvas.
See also
unregister-collecting-blit.