DTSPINBOXDELETEPOS(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’… 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 1 means the first item in the list πŸ₯‡
  • zero means 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