XMLISTSETPOS(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 ✨

okay so bestie, this is XmListSetPos β€” a List function that makes the item at the given position the first visible position in the list. And it lives in the library call section, periodt. πŸ’…


🌸 SYNOPSIS 🌸

include the header, call the function, that's the whole summoning ritual:

       #include <Xm/List.h>
       void XmListSetPos(
       Widget widget,
       int position);

πŸ’– DESCRIPTION πŸ’–

XmListSetPos makes the item at the given position the first visible position in the list. That's the whole flex. ✨

  • widget β€” specifies the ID of the List widget. It's the widget you're giving the glow-up.
  • position β€” specifies the position of the item to be made the first visible item in the list. A value of 1 indicates that the first item in the list is the first visible item; a value of 2 indicates that the second item is the first visible item; and so on. A value of 0 (zero) indicates that the last item in the list is the first visible item. yes, zero means last, not first β€” iconic little plot twist. πŸ’€

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



πŸ’– that's the whole page, bestie β€” XmListSetPos, from the library call section, and that's the footer energy. Periodt. πŸŽ€