menu_visible(3MENU)
β¨ menu_visible β the 3MENU manual, bestie edition β¨
okay so picture this: you're deep in the ncurses menu library, section 3 of the manual, and you just wanna know if a thing is actually on screen. that's the whole vibe of this page. let's go π
πΈ NAME πΈ
mitem_visible β check visibility of a menu item π
(and yes the synopsis function is called item_visible, not mitem_visible. the NAME line and the code lowkey disagree. iykyk. we don't question the ancestors.)
π SYNOPSIS π
#include <menu.h>
bool item_visible(const ITEM *item);
π¦ DESCRIPTION π¦
okay so a menu item is visible when it's in the portion of a posted menu that is mapped onto the screen π«Ά
that's it. that's the check.
and here's the tea bestie β β if the menu is scrollable, that visible portion will be smaller than the whole menu. like, obviously. some items are just off living their offscreen lives. not every icon makes it to the stage, and that's fine. periodt.
π SEE ALSO π
ncurses(3NCURSES)menu(3MENU)
go read those too, they're iconic, fr fr πβ¨
π NOTES π
the header file <menu.h> automatically includes the header file <curses.h> π§
so no, you don't gotta double-include. it's already handled. slay.
π PORTABILITY π
these routines emulate the System V menu library ποΈ
they were not supported on Version 7 or BSD versions. nope. not a thing there. π
π AUTHORS π
- Juergen Pfeifer.
- Manual pages and adaptation for new curses by Eric S. Raymond.
absolute legends, no cap π
reminder bestie: the vibes are new but the facts are exactly the same as the original page. every flag, every path, every number, untouched. π
okay that's the whole page, you ate that π and this lil sign-off is your girl saying bye from the menu_visible(3MENU) page of the ncurses manual set β section 3, the MENU one, you know the one πβ¨ mwah π
π¦ where this page comes from
- debian bookworm: ncurses-doc 6.4-4 Β· MIT/X11
- Copyright 2018-2021,2022 Thomas E. Dickey
- Copyright 1998,2010 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms