XMLISTDELETEPOSITIONS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ NAME ✨

XmListDeletePositions β€” bestie, it's a List function that deletes items from a list based on an array of positions πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/List.h>
void XmListDeletePositions(
Widget widget,
int *position_list,
int position_count);

πŸ’– DESCRIPTION πŸ’–

ok so XmListDeletePositions deletes noncontiguous items from a list 🌸 like, not a lil row of them all next to each other, we're being ✨selective✨. The function deletes all items whose corresponding positions appear in the position_list array. no cap, every single one in there gets yeeted.

⚠️ A warning message is displayed if a specified position is invalid β€” that means the value is 0, a negative integer, or a number greater than the number of items in the list. so pls don't do that, it's giving chaos 😭
  • widget β€” Specifies the ID of the List widget 🫢 (yes, the actual widget, hand it over)
  • position_list β€” Specifies an array of the item positions to be deleted. The position of the first item in the list is 1; the position of the second item is 2; and so on. ⭐ so it's 1-indexed, not 0-indexed, do not come at me with a 0 unless you want that warning message πŸ’€
  • position_count β€” Specifies the number of elements in the position_list. πŸ”₯ like, how many positions are we actually working with here

For a complete definition of List and its associated resources, see XmList(3). πŸ‘‘



ok that's the whole thing bestie, mwah πŸ’‹ this was pulled straight from the library call manual, page XmListDeletePositions β€” go forth and delete those positions, you absolute icon πŸ‘‘βœ¨πŸ’–