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