XMLISTREPLACEITEMSPOS(3)
β¨ XmListReplaceItemsPos β¨
okay bestie, welcome to XmListReplaceItemsPos from the XmList library family β it's a List function, and its whole job is swapping out specified elements in the list π
πΈ SYNOPSIS πΈ
#include <Xm/List.h>
void XmListReplaceItemsPos(
Widget widget,
XmString *new_items,
int item_count,
int position);
π¦ DESCRIPTION π¦
so here's the tea: XmListReplaceItemsPos takes the specified number of items in the List and replaces them with new items, starting at the specified position in the List. slay
and when those items get inserted into the list, they're compared with the current XmNselectedItems list β and if any of the new items matches an item on the selected list, it shows up selected. no cap, that's just how it works β¨
widgetβ the ID of the List widget. like, which list are we doing this to, bestie πnew_itemsβ the replacement items. the glow-up content itself πitem_countβ the number of items innew_itemsAND the number of items in the list to replace. this number must be nonnegative β not me being dramatic, that's literally the rule πpositionβ the position of the first item in the list to be replaced. a value of1means the first item replaced is the first item in the list; a value of2means it's the second item; and so on, and so on π
beginning with the item specified in position, item_count items in the list are replaced with the corresponding elements from new_items. that is:
- the item at
positiongets replaced with the first element ofnew_items - the item after
positiongets replaced with the second element ofnew_items - and so on, until
item_countis reached π«
for a complete definition of List and its associated resources, go check out XmList(3) β it's giving reference material, iykyk π
π RELATED π
fr fr, that's the whole page β every option, every value, nothing skipped π«Ά
and that's a wrap on this one, bestie! it's from the XmListReplaceItemsPos(library call) manual page, so shoutout to that source and its date stamp β go off, documentation πβπ
π¦ 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