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

πŸ’– XmMultiListGetSelectedRows β€” bestie edition πŸ’–

okay so picture this: it's a library call from the XmMultiList...electedRows corner of the manual, and it's here to answer the one question every MultiList girlie asks β€” who is selected rn? ✨


🌸 NAME 🌸

XmMultiListGetSelectedRows β€” it's a MultiList function, and its whole job is returning the rows that are currently selected. that's it. that's the gig. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/MultiList.h>
XmMultiListRowInfo ** XmMultiListGetSelectedRows(
Widget widget);

✨ DESCRIPTION ✨

use this routine to find the rows that currently are selected in a MultiList widget. like, you point it at the widget, it tells you who's chosen. main character detection, but for rows. πŸ‘‘

  • widget β€” specifies the ID of the MultiList widget. yes bestie, you have to tell it which one. it's not psychic. πŸ™ˆ

for a complete definition of MultiList and its associated resources, see XmMultiList(3). go read it, i'll wait. 🫢


πŸ’€ RETURN πŸ’€

the XmMultiListRowInfo ** that this function hands back contains a NULL terminated array of XmMultiListRowInfo pointers. read that again. NULL terminated. it just keeps going until it hits that NULL, so don't go wandering past it. 😭

⚠️ the calling routine is responsible for freeing the returned pointer with XtFree(). that's on YOU. not on the function. not on the widget. YOU. memory leaks are not the vibe. πŸ’…

and if nothing is selected? the function will return NULL. no elements, no array, no problem. 🌈



and that's the whole page, bestie β€” it lives in the library call section as XmMultiList...electedRows(library call), so if you ever need to cite it, that's the glow-up it's filed under. slay, stay selected, and free your pointers. periodt. πŸ‘‘πŸ’–βœ¨