XMLISTADDITEMUNSELECTED(3)
π XmListAddItemUnselected π
okay bestie, gather round, because we're doing a library call today β yes, from section 3 of the manual, XmListAddItemUnselected, and it's lowkey one of the most useful little List functions you'll ever meet π«Ά
β¨ NAME β¨
XmListAddItemUnselected β a List function that adds an item to the list πΈ
π SYNOPSIS π
#include <Xm/List.h>
void XmListAddItemUnselected(
Widget widget,
XmString item,
int position);
π DESCRIPTION π
so here's the tea: XmListAddItemUnselected adds an item to the list, at the position you tell it. and the whole point, the main character energy of it all, is that the item does not appear selected β even if it matches an item that's already chilling in the current XmNselectedItems list. it's giving "I'm here but I'm not on the guest list." iconic. π
the parameters, bestie, one by one:
widgetβ specifies the ID of the List from whose list an item is added πitemβ specifies the item to be added to the list β¨positionβ specifies the position of the new item in the list. and listen, the numbering is a whole thing:- a value of
1makes the new item the first item in the list - a value of
2makes it the second item - and so on, you get the pattern, you're smart, I believe in you π¦
- a value of
0(zero) makes the new item the last item in the list π
- a value of
not me pointing out that0means "end of the line" while1means "front of the line" β yes it's a little unhinged, no I did not make the rules, I just report them π
and if you want the complete definition of List and all its associated resources (the full lore, the extended universe), go read XmList(3) π
π₯ RELATED π₯
and that's the whole page, babe β literally everything, no cap. this little gem lives in the library call corner of the manual, and the page signs itself off as XmListAddItemUnselected(library call), which, yes, is the exact same thing it said at the top, it's very "I am who I am" of it π πβπ
π¦ 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