XMLISTREPLACEITEMSUNSELECTED(3)
π XmListReplaceItemsUnselected π
okay bestie, gather round, because this one is from the (library call) corner of the manual and it's lowkey iconic π«Ά
β¨ NAME β¨
XmListReplaceItemsUnselected β a List function that swaps items out in a list, no cap π
πΈ SYNOPSIS πΈ
#include <Xm/List.h>
void XmListReplaceItemsUnselected(
Widget widget,
XmString *old_items,
int item_count,
XmString *new_items);
π¦ DESCRIPTION π¦
so like, XmListReplaceItemsUnselected takes each item you point at and replaces it with a matching new item. and here's the main character detail: the replacement items stay unselected β even if they're literally sitting in the XmNselectedItems list right now. yeah. they're unselected. periodt. π
widgetβ the ID of the List widget you're doing the replacing in. the one and only. πold_itemsβ a pointer to the list items that are getting replaced. the ones saying bye πitem_countβ how many elements are chillin' inold_itemsandnew_items. and bestie, this number must be nonnegative. negative is not the vibe, don't do it. β οΈnew_itemsβ a pointer to the replacement items. here's the lore: every occurrence of each element ofold_itemsgets replaced with the corresponding element fromnew_items. matching in order, fr fr β first element ofold_itemsβ first element ofnew_items, second β second, and so on untilitem_countis reached. and if an element inold_itemsdoesn't exist in the list at all? then its matching entry innew_itemsjust gets skipped. nothing happens. it's giving ghosted π
for the complete definition of List and all its associated resources, go peek at XmList(3). π
π RELATED π
and that's the whole page, bestie β a (library call) moment through and through, and yeah the footer is literally just the same title again like a little echo XmListRepla...sUnselected(library call) π stay unselected, stay iconic β¨π
π¦ 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