8.16.0.4
8 Buffers Overlay
(require tui/ubuf/overlay) | package: tui-ubuf |
This module provides basic procedures for overlaying one universal buffer onto another.
procedure
(ubuf-copy! dst src [update-dirty?]) → void?
dst : ubuf? src : ubuf? update-dirty? : boolean? = #t
Copies the entire clip area of src to the entire clip area of
dst. Raises exn:fail? if their sizes do not match.
If update-dirty? is #t then the dirty flags on dst’s cells are set if the cell contents have changed.
procedure
(ubuf-put! dst src x0 y0 w0 h0 [ #:update-dirty update-dirty?]) → void? dst : ubuf? src : ubuf? x0 : fixnum? y0 : fixnum? w0 : (or/c fixnum? #f) h0 : (or/c fixnum? #f) update-dirty? : boolean? = #t
Overlays given src onto dst at position
(x0, y0) with origin being the dst’s
origin. Optionally the size of the src buffer can be reduced
by specifying non-#f values for w0 and h0.
It performs any clipping necessary and uses ubuf-copy! on appropriate temporary sub-buffers created by clip-ubuf.