"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdcurses/overlay.c" between
PDCurses-3.8.tar.gz and PDCurses-3.9.tar.gz

About: PDCurses is a multiple platforms curses library implementing most of the functions available in X/Open and System V R4 curses.

overlay.c  (PDCurses-3.8):overlay.c  (PDCurses-3.9)
skipping to change at line 20 skipping to change at line 20
### Synopsis ### Synopsis
int overlay(const WINDOW *src_w, WINDOW *dst_w) int overlay(const WINDOW *src_w, WINDOW *dst_w)
int overwrite(const WINDOW *src_w, WINDOW *dst_w) int overwrite(const WINDOW *src_w, WINDOW *dst_w)
int copywin(const WINDOW *src_w, WINDOW *dst_w, int src_tr, int copywin(const WINDOW *src_w, WINDOW *dst_w, int src_tr,
int src_tc, int dst_tr, int dst_tc, int dst_br, int src_tc, int dst_tr, int dst_tc, int dst_br,
int dst_bc, int _overlay) int dst_bc, int _overlay)
### Description ### Description
overlay() and overwrite() copy all the text from src_w into overlay() and overwrite() copy all the text from src_w into dst_w.
dst_w. The windows need not be the same size. Those characters The windows need not be the same size. Those characters in the source
in the source window that intersect with the destination window window that intersect with the destination window are copied, so that
are copied, so that the characters appear in the same physical the characters appear in the same physical position on the screen.
position on the screen. The difference between the two functions The difference between the two functions is that overlay() is non-
is that overlay() is non-destructive (blanks are not copied) destructive (blanks are not copied) while overwrite() is destructive
while overwrite() is destructive (blanks are copied). (blanks are copied).
copywin() is similar, but doesn't require that the two windows copywin() is similar, but doesn't require that the two windows
overlap. The arguments src_tc and src_tr specify the top left overlap. The arguments src_tc and src_tr specify the top left corner
corner of the region to be copied. dst_tc, dst_tr, dst_br, and of the region to be copied. dst_tc, dst_tr, dst_br, and dst_bc
dst_bc specify the region within the destination window to copy specify the region within the destination window to copy to. The
to. The argument "overlay", if TRUE, indicates that the copy is argument "overlay", if TRUE, indicates that the copy is done non-
done non-destructively (as in overlay()); blanks in the source destructively (as in overlay()); blanks in the source window are not
window are not copied to the destination window. When overlay is copied to the destination window. When overlay is FALSE, blanks are
FALSE, blanks are copied. copied.
### Return Value ### Return Value
All functions return OK on success and ERR on error. All functions return OK on success and ERR on error.
### Portability ### Portability
X/Open BSD SYS V X/Open ncurses NetBSD
overlay Y Y Y overlay Y Y Y
overwrite Y Y Y overwrite Y Y Y
copywin Y - 3.0 copywin Y Y Y
**man-end****************************************************************/ **man-end****************************************************************/
/* Thanks to Andreas Otte <venn@@uni-paderborn.de> for the /* Thanks to Andreas Otte <venn@@uni-paderborn.de> for the
corrected overlay()/overwrite() behavior. */ corrected overlay()/overwrite() behavior. */
static int _copy_win(const WINDOW *src_w, WINDOW *dst_w, int src_tr, static int _copy_win(const WINDOW *src_w, WINDOW *dst_w, int src_tr,
int src_tc, int src_br, int src_bc, int dst_tr, int src_tc, int src_br, int src_bc, int dst_tr,
int dst_tc, bool _overlay) int dst_tc, bool _overlay)
{ {
 End of changes. 4 change blocks. 
16 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)