XMLISTREPLACEITEMSPOSUNSELECTED(3)
β¨ NAME β¨
XmListReplaceItemsPosUnselected β bestie, it's a List function that swaps out items in a list without selecting the replacements π
Like, it does exactly what it says on the tin. No sneaky selection side effects. Iconic behavior honestly π
πΈ SYNOPSIS πΈ
#include <Xm/List.h>
void XmListReplaceItemsPosUnselected(
Widget widget,
XmString *new_items,
int item_count,
int position);
π DESCRIPTION π
Okay so here's the vibe: XmListReplaceItemsPosUnselected replaces the specified number of items in the list with new items, starting at the given position. The replacement items stay unselected β even if they currently appear in the XmNselectedItems list. No cap. They just chill there, unselected, living their truth π¦
Now let's meet the cast π«Ά
widgetβ Specifies the ID of the List widget to replace items in. This is your main character, the list you're messing with β¨new_itemsβ Specifies a pointer to the replacement items. The glow-up material πitem_countβ Specifies the number of elements innew_itemsand the number of items in the list to replace. Heads up bestie: this number must be nonnegative. Negative? Not today, not ever πpositionβ Specifies 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, forever and always β
So, 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
positionis replaced with the first element ofnew_itemsπ₯ - the item after
positionis replaced with the second element ofnew_itemsπ₯ - and so on, until
item_countis reached β¨
It's giving perfectly matched pairs. Like a group chat where everyone gets a plus-one and nobody is left out π
For a complete definition of List and its associated resources, see XmList(3). Go read it, it's the lore π
π RELATED π
And that's the whole page, bestie! This little baddie lives in the library call section β it's the XmListRepl...sUnselected(library call) entry, so go forth and replace items responsibly ππ
π¦ 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