]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_opaque.3x
ncurses 6.4 - patch 20231001
[ncurses.git] / man / curs_opaque.3x
1 .\"***************************************************************************
2 .\" Copyright 2020-2022,2023 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.35 2023/09/30 22:01:38 tom Exp $
31 .TH curs_opaque 3X 2023-09-30 "ncurses 6.4" "Library calls"
32 .ie \n(.g .ds `` \(lq
33 .el       .ds `` ``
34 .ie \n(.g .ds '' \(rq
35 .el       .ds '' ''
36 .SH NAME
37 \fB\%is_cleared\fP,
38 \fB\%is_idlok\fP,
39 \fB\%is_idcok\fP,
40 \fB\%is_immedok\fP,
41 \fB\%is_keypad\fP,
42 \fB\%is_leaveok\fP,
43 \fB\%is_nodelay\fP,
44 \fB\%is_notimeout\fP,
45 \fB\%is_pad\fP,
46 \fB\%is_scrollok\fP,
47 \fB\%is_subwin\fP,
48 \fB\%is_syncok\fP,
49 \fB\%wgetdelay\fP,
50 \fB\%wgetparent\fP,
51 \fB\%wgetscrreg\fP \-
52 obtain \fIcurses\fR window properties
53 .SH SYNOPSIS
54 .nf
55 \fB#include <curses.h>\fP
56 .PP
57 \fBbool is_cleared(const WINDOW *\fIwin\fB);\fR
58 \fBbool is_idcok(const WINDOW *\fIwin\fB);\fR
59 \fBbool is_idlok(const WINDOW *\fIwin\fB);\fR
60 \fBbool is_immedok(const WINDOW *\fIwin\fB);\fR
61 \fBbool is_keypad(const WINDOW *\fIwin\fB);\fR
62 \fBbool is_leaveok(const WINDOW *\fIwin\fB);\fR
63 \fBbool is_nodelay(const WINDOW *\fIwin\fB);\fR
64 \fBbool is_notimeout(const WINDOW *\fIwin\fB);\fR
65 \fBbool is_pad(const WINDOW *\fIwin\fB);\fR
66 \fBbool is_scrollok(const WINDOW *\fIwin\fB);\fR
67 \fBbool is_subwin(const WINDOW *\fIwin\fB);\fR
68 \fBbool is_syncok(const WINDOW *\fIwin\fB);\fR
69 .PP
70 \fBWINDOW * wgetparent(const WINDOW *\fIwin\fB);\fR
71 \fBint wgetdelay(const WINDOW *\fIwin\fB);\fR
72 \fBint wgetscrreg(const WINDOW *\fIwin\fB, int *\fItop\fB, int *\fIbottom\fB);\fR
73 .fi
74 .SH DESCRIPTION
75 \fIncurses\fP provides functions returning properties of a
76 \fI\%WINDOW\fP structure,
77 allowing it to be \*(``opaque\*('' if
78 the application defines the \fB\%NCURSES_OPAQUE\fP preprocessor symbol.
79 .TP
80 \fBis_cleared\fP
81 returns the value set by \fB\%clearok\fP(3X).
82 .TP
83 \fBis_idcok\fP
84 returns the value set by \fB\%idcok\fP(3X).
85 .TP
86 \fBis_idlok\fP
87 returns the value set by \fB\%idlok\fP(3X).
88 .TP
89 \fBis_immedok\fP
90 returns the value set by \fB\%immedok\fP(3X).
91 .TP
92 \fBis_keypad\fP
93 returns the value set by \fB\%keypad\fP(3X).
94 .TP
95 \fBis_leaveok\fP
96 returns the value set by \fB\%leaveok\fP(3X).
97 .TP
98 \fBis_nodelay\fP
99 returns the value set by \fB\%nodelay\fP(3X).
100 .TP
101 \fBis_notimeout\fP
102 returns the value set by \fB\%notimeout\fP(3X).
103 .TP
104 \fBis_pad\fP
105 returns \fBTRUE\fP if the window is a pad;
106 that is,
107 it created by \fB\%newpad\fP(3X).
108 .TP
109 \fBis_scrollok\fP
110 returns the value set by \fB\%scrollok\fP(3X).
111 .TP
112 \fBis_subwin\fP
113 returns \fBTRUE\fP if the window is a subwindow,
114 that is,
115 it was created by \fB\%subwin\fP(3X) or \fB\%derwin\fP(3X).
116 .TP
117 \fBis_syncok\fP
118 returns the value set by \fB\%syncok\fP(3X).
119 .TP
120 \fBwgetdelay\fP
121 returns the delay timeout set by \fB\%wtimeout\fP(3X).
122 .TP
123 \fBwgetparent\fP
124 returns the parent \fI\%WINDOW\fP pointer for subwindows,
125 or \fBNULL\fP for windows having no parent.
126 .TP
127 \fBwgetscrreg\fP
128 stores the the top and bottom rows for the scrolling margin set by
129 \fB\%wsetscrreg\fP(3X) in the corresponding arguments,
130 returning \fBERR\fP upon failure and \fBOK\fP upon successful
131 completion.
132 .SH RETURN VALUE
133 These functions return \fBTRUE\fP or \fBFALSE\fP except as noted.
134 .SH NOTES
135 \fIncurses\fP provides both a C function and a preprocessor macro for
136 each function documented in this page.
137 .SH PORTABILITY
138 These routines are specific to \fIncurses\fP.
139 They were not supported on Version 7, BSD or System V implementations.
140 It is recommended that any code depending on \fIncurses\fP extensions
141 be conditioned using \fB\%NCURSES_VERSION\fP.
142 .SH SEE ALSO
143 \fB\%curses\fP(3X),
144 \fB\%curs_inopts\fP(3X),
145 \fB\%curs_outopts\fP(3X),
146 \fB\%curs_threads\fP(3X),
147 \fB\%curs_window\fP(3X)