menu_visible(3MENU)

πŸ“¦
version 6.4 Β· 2 versions
, in debian bookworm

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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms