XMLISTYTOPOS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

okay so bestie, this is XmListYToPos(library call) β€” yes, the manual name is right there, folded in like a cute little name tag πŸŽ€. It's a List function that returns the position of the item at a specified y-coordinate. iykyk.


✨ NAME ✨

XmListYToPos β€” A List function that returns the position of the item at a specified y-coordinate. lowkey does exactly what it says on the tin πŸ’…


🌸 SYNOPSIS 🌸

#include <Xm/List.h>
int XmListYToPos(
Widget widget,
Position y);

πŸ’– DESCRIPTION πŸ’–

XmListYToPos returns the position of the item at the given y-coordinate within the list. it's literally the vibe check for β€œwhich item is at this y?” πŸ¦‹

  • widget β€” Specifies the ID of the List widget. that's the main character right there πŸ‘‘
  • y β€” Specifies the y-coordinate in the list's coordinate system. not screen coords, bestie β€” the list's own coordinate system, okay? πŸ“

For a complete definition of List and its associated resources, see XmList(3). no skipping, it's important 🫢


⭐ RETURN ⭐

Returns the position of the item at the specified y coordinate. here's the tea β˜•:

  • A value of 1 indicates the first item in the list.
  • A value of 2 indicates the second item.
  • and so on, you get the pattern, periodt.
  • A value of 0 (zero) indicates that no item exists at the specified y coordinate. πŸ’€
bestie, 0 is not item zero β€” it means there is no item at that y coordinate. do not get it twisted πŸ’…

XmList(3) and XmListPosToBounds(3). go read those too, bestie πŸ“š


XOXO from the XmListYToPos(library call) page πŸ’– β€” source/version: library call; date: not listed on this footer, so that's all we got. stay iconic. πŸŽ€βœ¨