XMLISTREPLACEPOSITIONS(3)
π NAME π
XmListReplacePositions β a List function that replaces items in a list based on position, and honestly? she's giving "surgical glow-up for your list" energy β¨
π SYNOPSIS π
#include <Xm/List.h>
void XmListReplacePositions(
Widget widget,
int *position_list,
XmString *item_list,
int item_count;);
π¦ DESCRIPTION π¦
okay bestie, so XmListReplacePositions swaps out noncontiguous items in a list. Noncontiguous, meaning they do not have to be all next to each other β you can glow up item 2 and item 47 in the same breath, no problem π
The item sitting at each position you name in position_list gets replaced by the matching entry in item_list. So it's a lil one-to-one, position-by-position kinda deal. Matching up, slay.
Here's the part you need to know: when the items get inserted into the list, they get compared against the current XmNselectedItems list. Any of the new items that match items on the selected list will appear selected. So like, they walk in already wearing the selection fit π
β οΈ And now the vibe check: a warning message is displayed if a specified position is invalid. Invalid means the value is 0 (zero), a negative integer, or a number greater than the number of items in the list. So don't do that. Fr fr. π
widgetβ Specifies the ID of the List widget. Like, which list are we doing surgery on? This one. π«Άposition_listβ Specifies an array of the positions of items to be replaced. Counting starts at 1, bestie: the position of the first item in the list is1; the position of the second item is2; and so on. Not zero-indexed, don't come at me. πΈitem_listβ Specifies an array of the replacement items. These are the new fits going in. β¨item_countβ Specifies the number of elements inposition_listanditem_list. This number must be nonnegative. That's the rule. Periodt. π
For a complete definition of List and its associated resources, see XmList(3).
π RELATED π
and that's the whole page, babe β no cap, that's everything she said π
this lil manual page is XmListReplacePositions(library call), from the library call crew β go off, read the related one too, iykyk π§π
π¦ 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