DTSPINBOXDELETEPOS(3)
π DtSpinBoxDeletePos β library call, bestie
okay so real talk, this is DtSpinBoxDeletePos from the library call gang, and she's here to help you yeet an item out of a DtSpinBox. let's get into it π
β¨ NAME β¨
DtSpinBoxDeletePos β deletes a DtSpinBox item. that's it, that's the whole job. she's a one-trick pony and she ate π
πΈ SYNOPSIS πΈ
#include <Dt/SpinBox.h>
void DtSpinBoxDeletePos(
Widget w,
int pos);
literally two arguments. you got this π«Ά
π¦ DESCRIPTION π¦
β οΈ heads up, queen β this function has been superseded by the equivalent Motif function XmSimpleSpinBoxDeletePos. so like... she's iconic but she's legacy. please refer to the Motif Programmer's Reference for more info, iykyk π
The DtSpinBoxDeletePos function deletes a specified item from a DtSpinBox widget. poof. gone. no cap β¨
The w argument specifies the widget ID. that's your widget, your main character.
The pos argument specifies the position of the item to be deleted. and here's the lil twist that lowkey trips everyone up:
- A value of
1means the first item in the list π₯ zeromeans the last item π
yes bestie, it's giving one-indexed-at-the-front, zero-means-the-end. write it on your hand, put it in your notes app, tattoo it, idc. just don't forget it π
β RETURN VALUE β
The DtSpinBoxDeletePos function returns no value. nothing. void. she gives you nothing back and honestly? that's fine, the deletion was the gift π
π SEE ALSO π
go read those too, be thorough, be curious, be that girl π
and that's the whole page, bestie! this one came to you straight from the library call source, no date on the footer so she's serving undated mystery icon energy π§β¨ now go delete some spinbox items responsibly ππ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms