1curs_overlay(3X)                                              curs_overlay(3X)
2
3
4

NAME

6       overlay, overwrite, copywin - overlay and manipulate overlapped curses
7       windows
8

SYNOPSIS

10       #include <curses.h>
11
12       int overlay(const WINDOW *srcwin, WINDOW *dstwin);
13       int overwrite(const WINDOW *srcwin, WINDOW *dstwin);
14       int copywin(const WINDOW *srcwin, WINDOW *dstwin, int sminrow,
15             int smincol, int dminrow, int dmincol, int dmaxrow,
16             int dmaxcol, int overlay);
17

DESCRIPTION

19   overlay, overwrite
20       The overlay and overwrite routines overlay srcwin  on  top  of  dstwin.
21       scrwin and dstwin are not required to be the same size; only text where
22       the two windows overlap is copied.  The difference is that  overlay  is
23       non-destructive  (blanks  are not copied) whereas overwrite is destruc‐
24       tive.
25
26   copywin
27       The copywin routine provides a finer granularity of  control  over  the
28       overlay  and overwrite routines.  As in the prefresh routine, a rectan‐
29       gle is specified in the  destination  window,  (dminrow,  dmincol)  and
30       (dmaxrow, dmaxcol), and the upper-left-corner coordinates of the source
31       window, (sminrow, smincol).  If the  argument  overlay  is  true,  then
32       copying is non-destructive, as in overlay.
33

RETURN VALUE

35       Routines  that  return an integer return ERR upon failure, and OK (SVr4
36       only specifies "an integer value other than ERR") upon successful  com‐
37       pletion.
38
39       X/Open  defines  no error conditions.  In this implementation, copywin,
40       overlay and overwrite return an error if either of the window  pointers
41       are null, or if some part of the window would be placed off-screen.
42

NOTES

44       Note that overlay and overwrite may be macros.
45

PORTABILITY

47       The  XSI Curses standard, Issue 4 describes these functions (adding the
48       const qualifiers).  It further specifies their behavior in the presence
49       of  characters with multibyte renditions (not yet supported in this im‐
50       plementation).
51

SEE ALSO

53       curses(3X), curs_pad(3X), curs_refresh(3X)
54
55
56
57                                                              curs_overlay(3X)
Impressum