]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_opaque.3x
ncurses 6.2 - patch 20200212
[ncurses.git] / man / curs_opaque.3x
1 .\"***************************************************************************
2 .\" Copyright 2020 Thomas E. Dickey                                          *
3 .\" Copyright 2007-2014,2015 Free Software Foundation, Inc.                  *
4 .\"                                                                          *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
6 .\" copy of this software and associated documentation files (the            *
7 .\" "Software"), to deal in the Software without restriction, including      *
8 .\" without limitation the rights to use, copy, modify, merge, publish,      *
9 .\" distribute, distribute with modifications, sublicense, and/or sell       *
10 .\" copies of the Software, and to permit persons to whom the Software is    *
11 .\" furnished to do so, subject to the following conditions:                 *
12 .\"                                                                          *
13 .\" The above copyright notice and this permission notice shall be included  *
14 .\" in all copies or substantial portions of the Software.                   *
15 .\"                                                                          *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
23 .\"                                                                          *
24 .\" Except as contained in this notice, the name(s) of the above copyright   *
25 .\" holders shall not be used in advertising or otherwise to promote the     *
26 .\" sale, use or other dealings in this Software without prior written       *
27 .\" authorization.                                                           *
28 .\"***************************************************************************
29 .\"
30 .\" $Id: curs_opaque.3x,v 1.14 2020/02/02 23:34:34 tom Exp $
31 .TH curs_opaque 3X ""
32 .ie \n(.g .ds `` \(lq
33 .el       .ds `` ``
34 .ie \n(.g .ds '' \(rq
35 .el       .ds '' ''
36 .na
37 .hy 0
38 .SH NAME
39 \fBis_cleared\fR,
40 \fBis_idlok\fR,
41 \fBis_idcok\fR,
42 \fBis_immedok\fR,
43 \fBis_keypad\fR,
44 \fBis_leaveok\fR,
45 \fBis_nodelay\fR,
46 \fBis_notimeout\fR,
47 \fBis_pad\fR,
48 \fBis_scrollok\fR,
49 \fBis_subwin\fR,
50 \fBis_syncok\fR,
51 \fBwgetdelay\fR,
52 \fBwgetparent\fR,
53 \fBwgetscrreg\fR \- \fBcurses\fR window properties
54 .ad
55 .hy
56 .SH SYNOPSIS
57 \fB#include <curses.h>\fR
58 .sp
59 \fBbool is_cleared(const WINDOW *win);\fR
60 .br
61 \fBbool is_idcok(const WINDOW *win);\fR
62 .br
63 \fBbool is_idlok(const WINDOW *win);\fR
64 .br
65 \fBbool is_immedok(const WINDOW *win);\fR
66 .br
67 \fBbool is_keypad(const WINDOW *win);\fR
68 .br
69 \fBbool is_leaveok(const WINDOW *win);\fR
70 .br
71 \fBbool is_nodelay(const WINDOW *win);\fR
72 .br
73 \fBbool is_notimeout(const WINDOW *win);\fR
74 .br
75 \fBbool is_pad(const WINDOW *win);\fR
76 .br
77 \fBbool is_scrollok(const WINDOW *win);\fR
78 .br
79 \fBbool is_subwin(const WINDOW *win);\fR
80 .br
81 \fBbool is_syncok(const WINDOW *win);\fR
82 .br
83 \fBWINDOW * wgetparent(const WINDOW *win);\fR
84 .br
85 \fBint wgetdelay(const WINDOW *win);\fR
86 .br
87 \fBint wgetscrreg(const WINDOW *win, int *top, int *bottom);\fR
88 .br
89 .SH DESCRIPTION
90 This implementation provides functions which return properties
91 set in the WINDOW structure, allowing it to be \*(``opaque\*('' if
92 the symbol \fBNCURSES_OPAQUE\fR is defined:
93 .TP 5
94 \fBis_cleared\fR
95 returns the value set in \fBclearok\fR
96 .TP 5
97 \fBis_idcok\fR
98 returns the value set in \fBidcok\fR
99 .TP 5
100 \fBis_idlok\fR
101 returns the value set in \fBidlok\fR
102 .TP 5
103 \fBis_immedok\fR
104 returns the value set in \fBimmedok\fR
105 .TP 5
106 \fBis_keypad\fR
107 returns the value set in \fBkeypad\fR
108 .TP 5
109 \fBis_leaveok\fR
110 returns the value set in \fBleaveok\fR
111 .TP 5
112 \fBis_nodelay\fR
113 returns the value set in \fBnodelay\fR
114 .TP 5
115 \fBis_notimeout\fR
116 returns the value set in \fBnotimeout\fR
117 .TP 5
118 \fBis_pad\fR
119 returns \fBTRUE\fP if the window is a pad
120 i.e., created by \fBnewpad\fP
121 .TP 5
122 \fBis_scrollok\fR
123 returns the value set in \fBscrollok\fR
124 .TP 5
125 \fBis_subwin\fR
126 returns \fBTRUE\fP if the window is a subwindow,
127 i.e., created by \fBsubwin\fP or \fBderwin\fP
128 .TP 5
129 \fBis_syncok\fR
130 returns the value set in \fBsyncok\fR
131 .TP 5
132 \fBwgetdelay\fR
133 returns the delay timeout as set in \fBwtimeout\fP.
134 .TP 5
135 \fBwgetparent\fR
136 returns the parent WINDOW pointer for subwindows,
137 or NULL for windows having no parent.
138 .TP 5
139 \fBwgetscrreg\fR
140 returns the top and bottom rows for the scrolling margin
141 as set in \fBwsetscrreg\fP.
142 .SH RETURN VALUE
143 These functions all return \fBTRUE\fP or \fBFALSE\fP, except as noted.
144 .SH NOTES
145 Both a macro and a function are provided for each name.
146 .SH PORTABILITY
147 These routines are specific to ncurses.
148 They were not supported on Version 7, BSD or System V implementations.
149 It is recommended that any code depending on ncurses extensions
150 be conditioned using NCURSES_VERSION.
151 .SH SEE ALSO
152 \fBcurses\fR(3X),
153 \fBcurs_inopts\fR(3X),
154 \fBcurs_outopts\fR(3X),
155 \fBcurs_window\fR(3X)