XMLISTGETKBDITEMPOS(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

πŸ’– XmListGetKbdItemPos πŸ’–

okay bestie, gather round, because this is a library call from the one and only XmListGetKbdItemPos and she is so simple it's almost criminal. we're talking X/Motif List widget territory, iykyk πŸ¦‹


✨ NAME ✨

XmListGetKbdItemPos β€” a List function that returns the position of the item at the location cursor πŸ‘‘


🌸 SYNOPSIS 🌸

#include <Xm/List.h>
int XmListGetKbdItemPos(
Widget widget);

πŸ’… DESCRIPTION πŸ’…

so basically, XmListGetKbdItemPos returns the position of the list item at the location cursor. that's it. that's the whole job. she's a one-trick pony and she ate πŸ’…βœ¨

  • widget β€” Specifies the ID of the List widget πŸŽ€

and if you want the complete definition of List and all its associated resources, go read XmList(3). like, the whole lore. it's giving required reading fr fr πŸ“š


⭐ RETURN ⭐

she returns the position of the current keyboard item. let's break that down because the numbering is lowkey iconic:

  • a value of 1 means the location cursor is chillin' at the first item of the list πŸ₯‡
  • a value of 2 means it's at the second item πŸ₯ˆ
  • and so on, and so on, you get the vibe 🌈
  • a value of 0 (zero) means the List widget is empty 😭 literally nothing in there, tragic
no cap, 0 is the "bestie the list is empty" signal. do not come for her, she is just being honest πŸ™ˆ


and that's the whole page, bestie!! this was XmListGetKbdItemPos(library call) β€” a library call, and yes the manual name is literally "library call" because that's how X/Motif rolls πŸ’€ she's serving source-and-version-and-date energy with absolutely zero drama, periodt. go forth and query that keyboard item position, you absolute main character πŸ‘‘πŸ’–πŸ¦‹βœ¨