XMLISTREPLACEITEMS(3)
β¨ NAME β¨
XmListReplaceItems β a List function that replaces the specified elements in the list π
π SYNOPSIS π
#include <Xm/List.h>
void XmListReplaceItems(
Widget widget,
XmString *old_items,
int item_count,
XmString *new_items);
πΈ DESCRIPTION πΈ
okay bestie, so XmListReplaceItems does exactly what it says on the tin: it replaces each specified item of the list with a corresponding new item. glow-up era fr fr π
and here's the lil plot twist π β when the items are inserted into the list, they get compared with the current XmNselectedItems list. so if any of the new items matches an item that's already on the selected list, it appears selected. no extra work needed, she just knows. β¨
widgetβ specifies the ID of the List widget. that's your girl, the one you're editing. πold_itemsβ specifies the items to be replaced. the ones getting the makeover. πitem_countβ specifies the number of items inold_itemsandnew_items. > this number must be nonnegative. no negativity allowed in this function, periodt. π«new_itemsβ specifies the replacement items. the new era. the rebrand. the main character entrance. π¦
so the way it works is: every occurrence of each element of old_items gets replaced with the corresponding element from new_items. that is, the first element of old_items is replaced with the first element of new_items. the second element of old_items is replaced with the second element of new_items, and so on until item_count is reached. it's a 1:1 match-up, no cap. like pairing up besties for a group photo πΈ β first with first, second with second, and you stop when you run out of people.
and for a complete definition of List and its associated resources, go check out XmList(3). it's giving required reading. π
π«Ά RELATED π«Ά
and that's the whole page bestie!! this lil cutie came from the XmListReplaceItems(library call) manual β library call energy only, she's a C library function through and through π go forth and replace those items, you absolute icon πβπ
π¦ 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