mitem_visible(3X)

πŸ’– mitem_visible(3X) β€” library calls, but make it cute πŸ’–

okay bestie, so this is mitem_visible(3X), a page from the ncurses library calls corner of the manual, and it's about exactly one (1) tiny question: is that menu item actually on screen rn? πŸ¦‹


✨ NAME ✨

item_visible β€” check visibility of a menu item πŸ‘€


✨ SYNOPSIS ✨

#include <menu.h>

bool item_visible(const ITEM *item);

✨ DESCRIPTION ✨

So here's the vibe: a menu item counts as visible when it's sitting in the portion of a posted menu that's actually mapped onto the screen. πŸ’…

And lowkey the tea here β€” if the menu is scrollable, that mapped portion is gonna be smaller than the whole entire menu. so like, yeah, some of your items are just off living their lives somewhere offscreen. not visible. sorry babe. 😭


✨ PORTABILITY ✨

These routines emulate the System V menu library. 🫢 They were not supported on Version 7 or BSD versions β€” so if you're kicking it old-school on those, this is not the function for you, no cap.


✨ AUTHORS ✨

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


✨ SEE ALSO ✨

  • curses(3X)
  • menu(3X)

fr fr that's the whole page β€” one function, one bool, zero drama πŸ’€βœ¨

okay that's a wrap bestie!! this lil page is from ncurses 6.6, dated 2024-03-16, and it goes by mitem_visible(3X) β€” mwah, iconic, periodt. πŸŽ€πŸ’œπŸŒΈ

πŸ“¦ where this page comes from