2007-12-30 11:08:14 +00:00
|
|
|
.\"***************************************************************************
|
2020-02-19 16:58:06 +00:00
|
|
|
.\" Copyright 2020 Thomas E. Dickey *
|
|
|
|
.\" Copyright 2007-2014,2015 Free Software Foundation, Inc. *
|
2007-12-30 11:08:14 +00:00
|
|
|
.\" *
|
|
|
|
.\" Permission is hereby granted, free of charge, to any person obtaining a *
|
|
|
|
.\" copy of this software and associated documentation files (the *
|
|
|
|
.\" "Software"), to deal in the Software without restriction, including *
|
|
|
|
.\" without limitation the rights to use, copy, modify, merge, publish, *
|
|
|
|
.\" distribute, distribute with modifications, sublicense, and/or sell *
|
|
|
|
.\" copies of the Software, and to permit persons to whom the Software is *
|
|
|
|
.\" furnished to do so, subject to the following conditions: *
|
|
|
|
.\" *
|
|
|
|
.\" The above copyright notice and this permission notice shall be included *
|
|
|
|
.\" in all copies or substantial portions of the Software. *
|
|
|
|
.\" *
|
|
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
|
|
|
|
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
|
|
|
|
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
|
|
|
|
.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
|
|
|
|
.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
|
|
|
|
.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
|
|
|
|
.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
|
|
|
.\" *
|
|
|
|
.\" Except as contained in this notice, the name(s) of the above copyright *
|
|
|
|
.\" holders shall not be used in advertising or otherwise to promote the *
|
|
|
|
.\" sale, use or other dealings in this Software without prior written *
|
|
|
|
.\" authorization. *
|
|
|
|
.\"***************************************************************************
|
|
|
|
.\"
|
2020-02-19 16:58:06 +00:00
|
|
|
.\" $Id: curs_opaque.3x,v 1.14 2020/02/02 23:34:34 tom Exp $
|
2007-12-30 11:08:14 +00:00
|
|
|
.TH curs_opaque 3X ""
|
2014-03-01 00:40:26 +00:00
|
|
|
.ie \n(.g .ds `` \(lq
|
|
|
|
.el .ds `` ``
|
|
|
|
.ie \n(.g .ds '' \(rq
|
|
|
|
.el .ds '' ''
|
2007-12-30 11:08:14 +00:00
|
|
|
.na
|
|
|
|
.hy 0
|
|
|
|
.SH NAME
|
|
|
|
\fBis_cleared\fR,
|
|
|
|
\fBis_idlok\fR,
|
|
|
|
\fBis_idcok\fR,
|
|
|
|
\fBis_immedok\fR,
|
|
|
|
\fBis_keypad\fR,
|
|
|
|
\fBis_leaveok\fR,
|
|
|
|
\fBis_nodelay\fR,
|
2014-02-28 19:18:07 +00:00
|
|
|
\fBis_notimeout\fR,
|
|
|
|
\fBis_pad\fR,
|
2007-12-30 11:08:14 +00:00
|
|
|
\fBis_scrollok\fR,
|
2014-02-28 19:18:07 +00:00
|
|
|
\fBis_subwin\fR,
|
2020-02-07 08:36:41 +00:00
|
|
|
\fBis_syncok\fR,
|
|
|
|
\fBwgetdelay\fR,
|
|
|
|
\fBwgetparent\fR,
|
|
|
|
\fBwgetscrreg\fR \- \fBcurses\fR window properties
|
2007-12-30 11:08:14 +00:00
|
|
|
.ad
|
|
|
|
.hy
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fB#include <curses.h>\fR
|
|
|
|
.sp
|
|
|
|
\fBbool is_cleared(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBbool is_idcok(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBbool is_idlok(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBbool is_immedok(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBbool is_keypad(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBbool is_leaveok(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBbool is_nodelay(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBbool is_notimeout(const WINDOW *win);\fR
|
|
|
|
.br
|
2014-02-28 19:18:07 +00:00
|
|
|
\fBbool is_pad(const WINDOW *win);\fR
|
|
|
|
.br
|
2007-12-30 11:08:14 +00:00
|
|
|
\fBbool is_scrollok(const WINDOW *win);\fR
|
|
|
|
.br
|
2014-02-28 19:18:07 +00:00
|
|
|
\fBbool is_subwin(const WINDOW *win);\fR
|
|
|
|
.br
|
2007-12-30 11:08:14 +00:00
|
|
|
\fBbool is_syncok(const WINDOW *win);\fR
|
|
|
|
.br
|
|
|
|
\fBWINDOW * wgetparent(const WINDOW *win);\fR
|
|
|
|
.br
|
2020-02-07 08:36:41 +00:00
|
|
|
\fBint wgetdelay(const WINDOW *win);\fR
|
|
|
|
.br
|
2007-12-30 11:08:14 +00:00
|
|
|
\fBint wgetscrreg(const WINDOW *win, int *top, int *bottom);\fR
|
|
|
|
.br
|
|
|
|
.SH DESCRIPTION
|
|
|
|
This implementation provides functions which return properties
|
2014-03-01 00:40:26 +00:00
|
|
|
set in the WINDOW structure, allowing it to be \*(``opaque\*('' if
|
2007-12-30 11:08:14 +00:00
|
|
|
the symbol \fBNCURSES_OPAQUE\fR is defined:
|
|
|
|
.TP 5
|
|
|
|
\fBis_cleared\fR
|
|
|
|
returns the value set in \fBclearok\fR
|
|
|
|
.TP 5
|
|
|
|
\fBis_idcok\fR
|
|
|
|
returns the value set in \fBidcok\fR
|
|
|
|
.TP 5
|
|
|
|
\fBis_idlok\fR
|
|
|
|
returns the value set in \fBidlok\fR
|
|
|
|
.TP 5
|
|
|
|
\fBis_immedok\fR
|
|
|
|
returns the value set in \fBimmedok\fR
|
|
|
|
.TP 5
|
|
|
|
\fBis_keypad\fR
|
|
|
|
returns the value set in \fBkeypad\fR
|
|
|
|
.TP 5
|
|
|
|
\fBis_leaveok\fR
|
|
|
|
returns the value set in \fBleaveok\fR
|
|
|
|
.TP 5
|
|
|
|
\fBis_nodelay\fR
|
|
|
|
returns the value set in \fBnodelay\fR
|
|
|
|
.TP 5
|
|
|
|
\fBis_notimeout\fR
|
|
|
|
returns the value set in \fBnotimeout\fR
|
|
|
|
.TP 5
|
2014-02-28 19:18:07 +00:00
|
|
|
\fBis_pad\fR
|
2020-02-07 08:36:41 +00:00
|
|
|
returns \fBTRUE\fP if the window is a pad
|
2014-02-28 19:18:07 +00:00
|
|
|
i.e., created by \fBnewpad\fP
|
|
|
|
.TP 5
|
2007-12-30 11:08:14 +00:00
|
|
|
\fBis_scrollok\fR
|
|
|
|
returns the value set in \fBscrollok\fR
|
|
|
|
.TP 5
|
2014-02-28 19:18:07 +00:00
|
|
|
\fBis_subwin\fR
|
2020-02-07 08:36:41 +00:00
|
|
|
returns \fBTRUE\fP if the window is a subwindow,
|
2014-02-28 19:18:07 +00:00
|
|
|
i.e., created by \fBsubwin\fP or \fBderwin\fP
|
|
|
|
.TP 5
|
2007-12-30 11:08:14 +00:00
|
|
|
\fBis_syncok\fR
|
|
|
|
returns the value set in \fBsyncok\fR
|
|
|
|
.TP 5
|
2020-02-07 08:36:41 +00:00
|
|
|
\fBwgetdelay\fR
|
|
|
|
returns the delay timeout as set in \fBwtimeout\fP.
|
|
|
|
.TP 5
|
2007-12-30 11:08:14 +00:00
|
|
|
\fBwgetparent\fR
|
|
|
|
returns the parent WINDOW pointer for subwindows,
|
|
|
|
or NULL for windows having no parent.
|
|
|
|
.TP 5
|
|
|
|
\fBwgetscrreg\fR
|
2014-03-01 00:40:26 +00:00
|
|
|
returns the top and bottom rows for the scrolling margin
|
|
|
|
as set in \fBwsetscrreg\fP.
|
2007-12-30 11:08:14 +00:00
|
|
|
.SH RETURN VALUE
|
2020-02-07 08:36:41 +00:00
|
|
|
These functions all return \fBTRUE\fP or \fBFALSE\fP, except as noted.
|
2007-12-30 11:08:14 +00:00
|
|
|
.SH NOTES
|
|
|
|
Both a macro and a function are provided for each name.
|
|
|
|
.SH PORTABILITY
|
|
|
|
These routines are specific to ncurses.
|
|
|
|
They were not supported on Version 7, BSD or System V implementations.
|
|
|
|
It is recommended that any code depending on ncurses extensions
|
|
|
|
be conditioned using NCURSES_VERSION.
|
|
|
|
.SH SEE ALSO
|
|
|
|
\fBcurses\fR(3X),
|
|
|
|
\fBcurs_inopts\fR(3X),
|
|
|
|
\fBcurs_outopts\fR(3X),
|
|
|
|
\fBcurs_window\fR(3X)
|