Skip to content

mitem_visible(3x)

item_visible - check visibility of a menu item

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

A menu item is visible when it is in the part of a posted menu that the menu’s subwindow shows. In a scrollable menu, that part is smaller than the whole menu; top_row (see mitem_current(3X)) gives the menu row it starts at.

item_visible returns TRUE if item is visible. It returns FALSE if it is not, if item is null, or if item is not connected to a posted menu.

This routine emulates the System V menu library. It was not supported on Version 7 or BSD versions.

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

curses(3X), menu(3X), menu_post(3X), mitem_current(3X)