XMLISTITEMPOS(3)
π XmListItemPos π
okay bestie, gather round, because today we're talking about XmListItemPos β a library call straight out of the Motif-verse, and she's here to answer exactly one question: where in the list is this thing?? π¦
β¨ NAME β¨
XmListItemPos β a List function that returns the position of an item in the list. that's it. that's her whole job. and she ate. π
πΈ SYNOPSIS πΈ
#include <Xm/List.h>
int XmListItemPos(
Widget widget,
XmString item);
yes the indentation is giving "I wrote this in 1994 and I stand by it" but we move. π«Ά
π DESCRIPTION π
So like, XmListItemPos returns the position of the first instance of the specified item in a list. Note the first β if your item is out here living its duplicate era and showing up multiple times, she's reporting on the earliest one only. no cap. β
widgetβ Specifies the ID of the List widget. like, which list are we even talking about, bestie? this one. πitemβ Specifies the item whose position is returned. the main character we're hunting for. π
For a complete definition of List and its associated resources, see XmList(3). iykyk, go read it, it's the whole lore. π
π₯ RETURN π₯
Returns the position in the list of the first instance of the specified item.
and the counting starts at 1, not zero, because we are not doing that today:
- the position of the first item in the list is
1β¨ - the position of the second item is
2β¨ - and so on, and so on, you get the vibe π
π¨ This function returns0(zero) if the item is not found. so if you get a0back, that's not a position, that's a sad trombone. item said "not today" and ghosted the list entirely. π
π RELATED π
XmList(3)β the source material, the blueprint, the mother. go pay respects. π
and that's the whole page, babe. this was XmListItemPos(library call) β that's the title AND the footer, she's wearing the same outfit twice and honestly? iconic. no date, no version, no author credits in sight, just pure unbothered Motif energy. periodt. πβ¨
π¦ 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