2 .\" Copyright (c) 1990, 1995 by Mortice Kern Systems Inc. All Rights Reserved Portions Copyright (c) 1999, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH COPYWIN 3XCURSES "Jun 5, 2002"
8 copywin \- overlay or overwrite any portion of window
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-I\fR /usr/xpg4/include \fB -L \fR /usr/xpg4/lib \e
13 \fB -R \fR /usr/xpg4/lib \fB -lcurses \fR [ \fIlibrary\fR... ]
15 \fBc89\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lcurses\fR [ \fIlibrary\fR... ]
19 \fBint\fR \fBcopywin\fR(\fBconst WINDOW *\fR\fIsrcwin\fR, \fBWINDOW *\fR\fIdstwin\fR, \fBint\fR \fIsminrow\fR, \fBint\fR \fIsmincol\fR,
20 \fBint\fR \fIdminrow\fR, \fBint\fR \fIdmincol\fR, \fBint\fR \fIdmaxrow\fR, \fBint\fR \fIdmaxcol\fR, \fBint\fR \fIoverlay\fR);
30 Is a pointer to the source window to be copied.
39 Is a pointer to the destination window to be overlayed or overwritten.
48 Is the row coordinate of the upper left corner of the rectangular area on the
49 source window to be copied.
58 Is the column coordinate of the upper left corner of the rectangular area on
59 the source window to be copied.
68 Is the row coordinate of the upper left corner of the rectangular area on the
69 destination window to be overlayed or overwritten.
78 Is the column coordinate of the upper left corner of the rectangular area on
79 destination window to be overlayed or overwritten.
88 Is the row coordinate of the lower right corner of the rectangular area on the
89 destination window to be overlayed or overwritten.
98 Is the column coordinate of the lower right corner of the rectangular area on
99 the destination window to be overlayed or overwritten.
108 Is a \fBTRUE\fR or \fBFALSE\fR value that determines whether the destination
109 window is overlayed or overwritten.
115 The \fBcopywin()\fR function provides a finer granularity of control over the
116 \fBoverlay\fR(3XCURSES) and \fBoverwrite\fR(3XCURSES) functions. As in the
117 \fBprefresh()\fR function (see \fBnewpad\fR(3XCURSES)), a rectangle is
118 specified in the destination window, (\fIdminrow\fR, \fIdmincol\fR) and
119 (\fIdmaxrow\fR, \fIdmaxcol\fR), and the upper-left-corner coordinates of the
120 source window, (\fIsmincol\fR, \fIsminrow\fR). If \fIoverlay\fR is \fBTRUE\fR,
121 then copying is non-destructive, as in \fBoverlay()\fR. If \fIoverlay\fR is
122 \fBFALSE\fR, then copying is destructive, as in \fBoverwrite()\fR.
126 Upon successful completion, the \fBcopywin()\fR function returns \fBOK\fR.
127 Otherwise, it returns \fBERR\fR.
131 No errors are defined.
135 See \fBattributes\fR(5) for descriptions of the following attributes:
143 ATTRIBUTE TYPE ATTRIBUTE VALUE
145 Interface Stability Standard
153 \fBcurses\fR(3XCURSES), \fBlibcurses\fR(3XCURSES), \fBnewpad\fR(3XCURSES),
154 \fBoverlay\fR(3XCURSES), \fBattributes\fR(5), \fBstandards\fR(5)