XMMULTILISTGETSELECTEDROWS(3)
π 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. π
π¦ RELATED π¦
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. ππβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms