2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>overlay</STRONG>, <STRONG>overwrite</STRONG>, <STRONG>copywin</STRONG> - overlay and manipulate over-
5 lapped <STRONG>curses</STRONG> windows
10 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
12 <STRONG>int</STRONG> <STRONG>overlay(const</STRONG> <STRONG>WINDOW</STRONG> <STRONG>*srcwin,</STRONG> <STRONG>WINDOW</STRONG> <STRONG>*dstwin);</STRONG>
13 <STRONG>int</STRONG> <STRONG>overwrite(const</STRONG> <STRONG>WINDOW</STRONG> <STRONG>*srcwin,</STRONG> <STRONG>WINDOW</STRONG> <STRONG>*dstwin);</STRONG>
14 <STRONG>int</STRONG> <STRONG>copywin(WINDOW</STRONG> <STRONG>*srcwin,</STRONG> <STRONG>WINDOW</STRONG> <STRONG>*dstwin,</STRONG> <STRONG>int</STRONG> <STRONG>sminrow,</STRONG>
15 <STRONG>int</STRONG> <STRONG>smincol,</STRONG> <STRONG>int</STRONG> <STRONG>dminrow,</STRONG> <STRONG>int</STRONG> <STRONG>dmincol,</STRONG> <STRONG>int</STRONG> <STRONG>dmaxrow,</STRONG>
16 <STRONG>int</STRONG> <STRONG>dmaxcol,</STRONG> <STRONG>int</STRONG> <STRONG>overlay);</STRONG>
20 <H2>DESCRIPTION</H2><PRE>
21 The <STRONG>overlay</STRONG> and <STRONG>overwrite</STRONG> routines overlay <EM>srcwin</EM> on top
22 of <EM>dstwin</EM>. <EM>scrwin</EM> and <EM>dstwin</EM> are not required to be the
23 same size; only text where the two windows overlap is
24 copied. The difference is that <STRONG>overlay</STRONG> is non-destructive
25 (blanks are not copied) whereas <STRONG>overwrite</STRONG> is destructive.
27 The <STRONG>copywin</STRONG> routine provides a finer granularity of con-
28 trol over the <STRONG>overlay</STRONG> and <STRONG>overwrite</STRONG> routines. Like in the
29 <STRONG>prefresh</STRONG> routine, a rectangle is specified in the destina-
30 tion window, (<EM>dminrow</EM>, <EM>dmincol</EM>) and (<EM>dmaxrow</EM>, <EM>dmaxcol</EM>),
31 and the upper-left-corner coordinates of the source win-
32 dow, (<EM>sminrow</EM>, <EM>smincol</EM>). If the argument <EM>overlay</EM> is <STRONG>true</STRONG>,
33 then copying is non-destructive, as in <STRONG>overlay</STRONG>.
37 <H2>RETURN VALUE</H2><PRE>
38 Routines that return an integer return <STRONG>ERR</STRONG> upon failure,
39 and <STRONG>OK</STRONG> (SVr4 only specifies "an integer value other than
40 <STRONG>ERR</STRONG>") upon successful completion.
45 Note that <STRONG>overlay</STRONG> and <STRONG>overwrite</STRONG> may be macros.
49 <H2>PORTABILITY</H2><PRE>
50 The XSI Curses standard, Issue 4 describes these functions
51 (adding the const qualifiers). It further specifies their
52 behavior in the presence of characters with multi-byte
53 renditions (not yet supported in this implementation).
57 <H2>SEE ALSO</H2><PRE>
58 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="curs_pad.3x.html">curs_pad(3X)</A></STRONG>, <STRONG><A HREF="curs_refresh.3x.html">curs_refresh(3X)</A></STRONG>