mitem_visible(3x)

mitem_visible3x

Check visibility of a menu item

Usage

#include <menu.h>
bool item_visible(const ITEM *item);

Overview

A menu item is visible when it is in the portion of a posted menu that is mapped onto the screen (if the menu is scrollable, in particular, this portion will be smaller than the whole menu).

Notes

The header file <menu.h> automatically includes the header file <curses.h>.

Portability

These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions.

Releases

155 releases since Mac OS X 10.2; the text changed 2 times.

  1. 10.2–10.3.9
  2. 10.4–13.5
  3. 14.0–26.5

Authors

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.

From ncurses 79 in macOS 26.5. Parsed by carta from the page's man source.