NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO
#include <curses.h>int copywin(WINDOW *srcwin, WINDOW *dstwin, int sminrow, int smincol, int dminrow, int dmincol, int dmaxrow, int dmaxcol, int overlay);
Is a pointer to the source window to be copied.
Is a pointer to the destination window to be overlayed or overwritten.
Is the row coordinate of the upper left corner of the rectangular area on the source window to be copied.
Is the column coordinate of the upper left corner of the rectangular area on the source window to be copied.
Is the row coordinate of the upper left corner of the rectangular area on the destination window to be overlayed or overwritten.
Is the column coordinate of the upper left corner of the rectangular area on destination window to be overlayed or overwritten.
Is the row coordinate of the lower right corner of the rectangular area on the destination window to be overlayed or overwritten.
Is the column coordinate of the lower right corner of the rectangular area on the destination window to be overlayed or overwritten.
Is a true or false value that determines whether the destination window is overlayed or overwritten.
The copywin() function overlays or overwrites windows similar to the overlay(3XC) and overwrite(3XC) functions; however, copywin() allows a finer degree of control on what portion of the window to overlay or overwrite.
The parameters smincol and sminrow specify the upper left corner of the rectangular area of the source window to be copied. The dminrow and dmincol parameters specify the upper left corner of the rectangular area of the destination window to which the specified portion of the source is to be copied. The dmaxrow and dmaxcol parameters specify the bottom right corner of the rectangular area of the destination window to which the specified portion of the source is to be copied.
If overlay is TRUE, only non-blank characters are copied to the destination window; if it is FALSE, all characters are copied.
For details on how this function handles overlapping windows with multicolumn characters, see the Overlapping Windows section of the curses(3XC) man page.
On success, the copywin() function returns OK. Otherwise, it returns ERR.
None.
NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO