]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_overlay.3x
b6a026059d44a2ae995a8cb60f33d0403ac299f1
[ncurses.git] / man / curs_overlay.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 1998 Free Software Foundation, Inc.                        *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: curs_overlay.3x,v 1.8 1998/12/26 20:08:30 tom Exp $
30 .TH curs_overlay 3X ""
31 .SH NAME
32 \fBoverlay\fR, \fBoverwrite\fR, \fBcopywin\fR - overlay and
33 manipulate overlapped \fBcurses\fR windows
34 .SH SYNOPSIS
35 \fB#include <curses.h>\fR
36
37 \fBint overlay(const WINDOW *srcwin, WINDOW *dstwin);\fR
38 .br
39 \fBint overwrite(const WINDOW *srcwin, WINDOW *dstwin);\fR
40 .br
41 \fBint copywin(WINDOW *srcwin, WINDOW *dstwin, int sminrow,\fR
42       \fBint smincol, int dminrow, int dmincol, int dmaxrow,\fR
43       \fBint dmaxcol, int overlay);\fR
44 .SH DESCRIPTION
45 The \fBoverlay\fR and \fBoverwrite\fR routines overlay \fIsrcwin\fR on
46 top of \fIdstwin\fR.  \fIscrwin\fR and \fIdstwin\fR are not required
47 to be the same size; only text where the two windows overlap is
48 copied.  The difference is that \fBoverlay\fR is non-destructive
49 (blanks are not copied) whereas \fBoverwrite\fR is destructive.
50
51 The \fBcopywin\fR routine provides a finer granularity of control over the
52 \fBoverlay\fR and \fBoverwrite\fR routines.  Like in the \fBprefresh\fR
53 routine, a rectangle is specified in the destination window, (\fIdminrow\fR,
54 \fIdmincol\fR) and (\fIdmaxrow\fR, \fIdmaxcol\fR), and the upper-left-corner
55 coordinates of the source window, (\fIsminrow\fR, \fIsmincol\fR).  If the
56 argument \fIoverlay\fR is \fBtrue\fR, then copying is non-destructive, as in
57 \fBoverlay\fR.
58 .SH RETURN VALUE
59 Routines that return an integer return \fBERR\fR upon failure, and \fBOK\fR
60 (SVr4 only specifies "an integer value other than \fBERR\fR") upon successful
61 completion.
62 .SH NOTES
63 Note that \fBoverlay\fR and \fBoverwrite\fR may be macros.
64 .SH PORTABILITY
65 The XSI Curses standard, Issue 4 describes these functions (adding the const
66 qualifiers).  It further specifies their behavior in the presence of characters
67 with multi-byte renditions (not yet supported in this implementation).
68 .SH SEE ALSO
69 \fBcurses\fR(3X), \fBcurs_pad\fR(3X), \fBcurs_refresh\fR(3X)
70 .\"#
71 .\"# The following sets edit modes for GNU EMACS
72 .\"# Local Variables:
73 .\"# mode:nroff
74 .\"# fill-column:79
75 .\"# End: