Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 1 | .\"*************************************************************************** |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 2 | .\" Copyright 2020-2023,2024 Thomas E. Dickey * |
| 3 | .\" Copyright 2007-2014,2015 Free Software Foundation, Inc. * |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 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 | .\" |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 30 | .\" $Id: curs_opaque.3x,v 1.43 2024/03/16 15:35:01 tom Exp $ |
| 31 | .TH curs_opaque 3X 2024-03-16 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls" |
| 32 | .ie \n(.g \{\ |
| 33 | .ds `` \(lq |
| 34 | .ds '' \(rq |
| 35 | .\} |
| 36 | .el \{\ |
| 37 | .ie t .ds `` `` |
| 38 | .el .ds `` "" |
| 39 | .ie t .ds '' '' |
| 40 | .el .ds '' "" |
| 41 | .\} |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 42 | .SH NAME |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 43 | \fB\%is_cleared\fP, |
| 44 | \fB\%is_idlok\fP, |
| 45 | \fB\%is_idcok\fP, |
| 46 | \fB\%is_immedok\fP, |
| 47 | \fB\%is_keypad\fP, |
| 48 | \fB\%is_leaveok\fP, |
| 49 | \fB\%is_nodelay\fP, |
| 50 | \fB\%is_notimeout\fP, |
| 51 | \fB\%is_pad\fP, |
| 52 | \fB\%is_scrollok\fP, |
| 53 | \fB\%is_subwin\fP, |
| 54 | \fB\%is_syncok\fP, |
| 55 | \fB\%wgetdelay\fP, |
| 56 | \fB\%wgetparent\fP, |
| 57 | \fB\%wgetscrreg\fP \- |
| 58 | obtain \fIcurses\fR window properties |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 59 | .SH SYNOPSIS |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 60 | .nf |
| 61 | \fB#include <curses.h> |
| 62 | .PP |
| 63 | \fBbool is_cleared(const WINDOW *\fIwin\fP); |
| 64 | \fBbool is_idcok(const WINDOW *\fIwin\fP); |
| 65 | \fBbool is_idlok(const WINDOW *\fIwin\fP); |
| 66 | \fBbool is_immedok(const WINDOW *\fIwin\fP); |
| 67 | \fBbool is_keypad(const WINDOW *\fIwin\fP); |
| 68 | \fBbool is_leaveok(const WINDOW *\fIwin\fP); |
| 69 | \fBbool is_nodelay(const WINDOW *\fIwin\fP); |
| 70 | \fBbool is_notimeout(const WINDOW *\fIwin\fP); |
| 71 | \fBbool is_pad(const WINDOW *\fIwin\fP); |
| 72 | \fBbool is_scrollok(const WINDOW *\fIwin\fP); |
| 73 | \fBbool is_subwin(const WINDOW *\fIwin\fP); |
| 74 | \fBbool is_syncok(const WINDOW *\fIwin\fP); |
| 75 | .PP |
| 76 | \fBWINDOW * wgetparent(const WINDOW *\fIwin\fP); |
| 77 | \fBint wgetdelay(const WINDOW *\fIwin\fP); |
| 78 | \fBint wgetscrreg(const WINDOW *\fIwin\fP, int *\fItop\fP, int *\fIbottom\fP); |
| 79 | .fi |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 80 | .SH DESCRIPTION |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 81 | \fI\%ncurses\fP provides functions returning properties of a |
| 82 | \fI\%WINDOW\fP structure, |
| 83 | allowing it to be \*(``opaque\*('' if |
| 84 | the application defines the \fB\%NCURSES_OPAQUE\fP preprocessor symbol. |
| 85 | \fIOpacity\fP in this sense means that the members of \fIstruct\fP data |
| 86 | types are not directly accessible |
| 87 | (for instance, |
| 88 | through \*(``.\*('' or \*(``\->\*('' operators), |
| 89 | but instead must be queried and/or set via library functions. |
| 90 | Advantages of opacity include greater abstraction and improved |
| 91 | management of concurrent accesses to data structures, |
| 92 | keeping object states coherent. |
| 93 | .TP |
| 94 | \fBis_cleared\fP |
| 95 | returns the value set by \fB\%clearok\fP(3X). |
| 96 | .TP |
| 97 | \fBis_idcok\fP |
| 98 | returns the value set by \fB\%idcok\fP(3X). |
| 99 | .TP |
| 100 | \fBis_idlok\fP |
| 101 | returns the value set by \fB\%idlok\fP(3X). |
| 102 | .TP |
| 103 | \fBis_immedok\fP |
| 104 | returns the value set by \fB\%immedok\fP(3X). |
| 105 | .TP |
| 106 | \fBis_keypad\fP |
| 107 | returns the value set by \fB\%keypad\fP(3X). |
| 108 | .TP |
| 109 | \fBis_leaveok\fP |
| 110 | returns the value set by \fB\%leaveok\fP(3X). |
| 111 | .TP |
| 112 | \fBis_nodelay\fP |
| 113 | returns the value set by \fB\%nodelay\fP(3X). |
| 114 | .TP |
| 115 | \fBis_notimeout\fP |
| 116 | returns the value set by \fB\%notimeout\fP(3X). |
| 117 | .TP |
| 118 | \fBis_pad\fP |
| 119 | returns \fBTRUE\fP if the window is a pad; |
| 120 | that is, |
| 121 | it was created by \fB\%newpad\fP(3X). |
| 122 | .TP |
| 123 | \fBis_scrollok\fP |
| 124 | returns the value set by \fB\%scrollok\fP(3X). |
| 125 | .TP |
| 126 | \fBis_subwin\fP |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 127 | returns \fBTRUE\fP if the window is a subwindow, |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 128 | that is, |
| 129 | it was created by \fB\%subwin\fP(3X) or \fB\%derwin\fP(3X). |
| 130 | .TP |
| 131 | \fBis_syncok\fP |
| 132 | returns the value set by \fB\%syncok\fP(3X). |
| 133 | .TP |
| 134 | \fBwgetdelay\fP |
| 135 | returns the delay timeout set by \fB\%wtimeout\fP(3X). |
| 136 | .TP |
| 137 | \fBwgetparent\fP |
| 138 | returns the parent \fI\%WINDOW\fP pointer for subwindows, |
| 139 | or \fBNULL\fP for windows having no parent. |
| 140 | .TP |
| 141 | \fBwgetscrreg\fP |
| 142 | stores the the top and bottom rows for the scrolling margin set by |
| 143 | \fB\%wsetscrreg\fP(3X) in the corresponding arguments, |
| 144 | returning \fBERR\fP upon failure and \fBOK\fP upon successful |
| 145 | completion. |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 146 | .SH RETURN VALUE |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 147 | These functions return \fBTRUE\fP or \fBFALSE\fP except as noted. |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 148 | .SH NOTES |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 149 | \fI\%ncurses\fP provides both a C function and a preprocessor macro for |
| 150 | each function documented in this page. |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 151 | .SH PORTABILITY |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 152 | These routines are specific to \fI\%ncurses\fP. |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 153 | They were not supported on Version 7, BSD or System V implementations. |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 154 | It is recommended that any code depending on \fI\%ncurses\fP extensions |
| 155 | be conditioned using \fB\%NCURSES_VERSION\fP. |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 156 | .SH SEE ALSO |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 157 | \fB\%curses\fP(3X), |
| 158 | \fB\%curs_inopts\fP(3X), |
| 159 | \fB\%curs_outopts\fP(3X), |
| 160 | \fB\%curs_threads\fP(3X), |
| 161 | \fB\%curs_window\fP(3X) |