---
name: "curs_opaque"
section: "3x"
platform: "macos"
package: "ncurses"
version: "79"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/curs_opaque/3x"
---

# curs\_opaque(3x)

curses window properties

## NAME

**is\_cleared**, **is\_idlok**, **is\_idcok**, **is\_immedok**, **is\_keypad**, **is\_leaveok**, **is\_nodelay**, **is\_notimeout**, **is\_pad**, **is\_scrollok**, **is\_subwin**, **is\_syncok** - **curses** window properties

## SYNOPSIS

**#include \<curses.h\>**

**bool is\_cleared(const WINDOW \*win);**\
 **bool is\_idcok(const WINDOW \*win);**\
 **bool is\_idlok(const WINDOW \*win);**\
 **bool is\_immedok(const WINDOW \*win);**\
 **bool is\_keypad(const WINDOW \*win);**\
 **bool is\_leaveok(const WINDOW \*win);**\
 **bool is\_nodelay(const WINDOW \*win);**\
 **bool is\_notimeout(const WINDOW \*win);**\
 **bool is\_pad(const WINDOW \*win);**\
 **bool is\_scrollok(const WINDOW \*win);**\
 **bool is\_subwin(const WINDOW \*win);**\
 **bool is\_syncok(const WINDOW \*win);**\
 **WINDOW \* wgetparent(const WINDOW \*win);**\
 **int wgetdelay(const WINDOW \*win);**\
 **int wgetscrreg(const WINDOW \*win, int \*top, int \*bottom);**\

## DESCRIPTION

This implementation provides functions which return properties set in the WINDOW structure, allowing it to be “opaque” if the symbol **NCURSES\_OPAQUE** is defined:

- **is\_cleared**

  returns the value set in **clearok**

- **is\_idcok**

  returns the value set in **idcok**

- **is\_idlok**

  returns the value set in **idlok**

- **is\_immedok**

  returns the value set in **immedok**

- **is\_keypad**

  returns the value set in **keypad**

- **is\_leaveok**

  returns the value set in **leaveok**

- **is\_nodelay**

  returns the value set in **nodelay**

- **is\_notimeout**

  returns the value set in **notimeout**

- **is\_pad**

  returns **TRUE** if the window is a pad i.e., created by **newpad**

- **is\_scrollok**

  returns the value set in **scrollok**

- **is\_subwin**

  returns **TRUE** if the window is a subwindow, i.e., created by **subwin** or **derwin**

- **is\_syncok**

  returns the value set in **syncok**

- **wgetdelay**

  returns the delay timeout as set in **wtimeout**.

- **wgetparent**

  returns the parent WINDOW pointer for subwindows, or NULL for windows having no parent.

- **wgetscrreg**

  returns the top and bottom rows for the scrolling margin as set in **wsetscrreg**.

## RETURN VALUE

These functions all return **TRUE** or **FALSE**, except as noted.

## NOTES

Both a macro and a function are provided for each name.

## 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.

## SEE ALSO

**curses**(3X), **curs\_inopts**(3X), **curs\_outopts**(3X), **curs\_window**(3X)
