]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_opaque.3x
ncurses 6.0 - patch 20170325
[ncurses.git] / man / curs_opaque.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 2007-2014,2015 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_opaque.3x,v 1.13 2015/12/05 20:05:45 tom Exp $
30 .TH curs_opaque 3X ""
31 .ie \n(.g .ds `` \(lq
32 .el       .ds `` ``
33 .ie \n(.g .ds '' \(rq
34 .el       .ds '' ''
35 .na
36 .hy 0
37 .SH NAME
38 \fBis_cleared\fR,
39 \fBis_idlok\fR,
40 \fBis_idcok\fR,
41 \fBis_immedok\fR,
42 \fBis_keypad\fR,
43 \fBis_leaveok\fR,
44 \fBis_nodelay\fR,
45 \fBis_notimeout\fR,
46 \fBis_pad\fR,
47 \fBis_scrollok\fR,
48 \fBis_subwin\fR,
49 \fBis_syncok\fR,
50 \fBwgetdelay\fR,
51 \fBwgetparent\fR,
52 \fBwgetscrreg\fR \- \fBcurses\fR window properties
53 .ad
54 .hy
55 .SH SYNOPSIS
56 \fB#include <curses.h>\fR
57 .sp
58 \fBbool is_cleared(const WINDOW *win);\fR
59 .br
60 \fBbool is_idcok(const WINDOW *win);\fR
61 .br
62 \fBbool is_idlok(const WINDOW *win);\fR
63 .br
64 \fBbool is_immedok(const WINDOW *win);\fR
65 .br
66 \fBbool is_keypad(const WINDOW *win);\fR
67 .br
68 \fBbool is_leaveok(const WINDOW *win);\fR
69 .br
70 \fBbool is_nodelay(const WINDOW *win);\fR
71 .br
72 \fBbool is_notimeout(const WINDOW *win);\fR
73 .br
74 \fBbool is_pad(const WINDOW *win);\fR
75 .br
76 \fBbool is_scrollok(const WINDOW *win);\fR
77 .br
78 \fBbool is_subwin(const WINDOW *win);\fR
79 .br
80 \fBbool is_syncok(const WINDOW *win);\fR
81 .br
82 \fBWINDOW * wgetparent(const WINDOW *win);\fR
83 .br
84 \fBint wgetdelay(const WINDOW *win);\fR
85 .br
86 \fBint wgetscrreg(const WINDOW *win, int *top, int *bottom);\fR
87 .br
88 .SH DESCRIPTION
89 This implementation provides functions which return properties
90 set in the WINDOW structure, allowing it to be \*(``opaque\*('' if
91 the symbol \fBNCURSES_OPAQUE\fR is defined:
92 .TP 5
93 \fBis_cleared\fR
94 returns the value set in \fBclearok\fR
95 .TP 5
96 \fBis_idcok\fR
97 returns the value set in \fBidcok\fR
98 .TP 5
99 \fBis_idlok\fR
100 returns the value set in \fBidlok\fR
101 .TP 5
102 \fBis_immedok\fR
103 returns the value set in \fBimmedok\fR
104 .TP 5
105 \fBis_keypad\fR
106 returns the value set in \fBkeypad\fR
107 .TP 5
108 \fBis_leaveok\fR
109 returns the value set in \fBleaveok\fR
110 .TP 5
111 \fBis_nodelay\fR
112 returns the value set in \fBnodelay\fR
113 .TP 5
114 \fBis_notimeout\fR
115 returns the value set in \fBnotimeout\fR
116 .TP 5
117 \fBis_pad\fR
118 returns \fBTRUE\fP if the window is a pad
119 i.e., created by \fBnewpad\fP
120 .TP 5
121 \fBis_scrollok\fR
122 returns the value set in \fBscrollok\fR
123 .TP 5
124 \fBis_subwin\fR
125 returns \fBTRUE\fP if the window is a subwindow,
126 i.e., created by \fBsubwin\fP or \fBderwin\fP
127 .TP 5
128 \fBis_syncok\fR
129 returns the value set in \fBsyncok\fR
130 .TP 5
131 \fBwgetdelay\fR
132 returns the delay timeout as set in \fBwtimeout\fP.
133 .TP 5
134 \fBwgetparent\fR
135 returns the parent WINDOW pointer for subwindows,
136 or NULL for windows having no parent.
137 .TP 5
138 \fBwgetscrreg\fR
139 returns the top and bottom rows for the scrolling margin
140 as set in \fBwsetscrreg\fP.
141 .SH RETURN VALUE
142 These functions all return \fBTRUE\fP or \fBFALSE\fP, except as noted.
143 .SH NOTES
144 Both a macro and a function are provided for each name.
145 .SH PORTABILITY
146 These routines are specific to ncurses.
147 They were not supported on Version 7, BSD or System V implementations.
148 It is recommended that any code depending on ncurses extensions
149 be conditioned using NCURSES_VERSION.
150 .SH SEE ALSO
151 \fBcurses\fR(3X),
152 \fBcurs_inopts\fR(3X),
153 \fBcurs_outopts\fR(3X),
154 \fBcurs_window\fR(3X)