XMSIMPLESPINBOXDELETEPOS(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

πŸ’– XmSimpleSpinBoxDeletePos πŸ’–

okay bestie, gather round, because today we're talking about XmSimpleSpinBoxDeletePos β€” a little function from the Xm library (yes, the Motif girlies, we're back at it) and she's here to do exactly one job and do it slayfully. ✨


🌸 NAME 🌸

XmSimpleSpinBoxDeletePos β€” delete a XmSimpleSpinBox item πŸ—‘οΈβœ¨

like. the name literally ate. she deletes. that's the whole vibe. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/SpinB.h>
void XmSimpleSpinBoxDeletePos(
Widget w,
int pos);

no cap, that's it. two args, zero drama. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the XmSimpleSpinBoxDeletePos function deletes a specified item from a XmSimpleSpinBox widget. that's the whole main character arc. she removes a thing from a list. iconic behaviour honestly. πŸ’…

w β€” this is the widget ID, bestie. it's you telling her which spin box we're messing with. don't get this wrong, okay? she needs to know where she's working. 😭

pos β€” this is the position of the item you want gone. and here's the part that's giving sneaky: a value of 1 means the first item in the list, and zero means the last item. πŸ“

not me needing to read that twice. yes bestie, 1 = first, 0 = last. it's not zero-indexed-from-the-front, it's zero-indexed-from-the-back. write that on your hand. πŸ–ŠοΈπŸ’€

⭐ RETURN VALUE ⭐

the XmSimpleSpinBoxDeletePos function returns no value. she's a void. she gives nothing back and honestly? relatable. she simply does the deed and leaves. πŸ§šβ€β™€οΈ


🌈 SEE ALSO 🌈

go read those too, bestie, they're all in the same friend group. πŸ‘‘βœ¨


and that's the whole page, angel. this was XmSimpleSpinBoxDeletePos from the Xm library call pages β€” the header up top and the footer down bottom just echo her name and tag her as a library call, so consider this your official cute sign-off. πŸ’œ πŸŽ€ go delete an item. slay. πŸ¦‹