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

Ok bestie, this is XmMultiListGetSelectedRowArray from the library call section β€” a MultiList function that returns an array of integers which are selected row numbers. It's giving "which rows are selected?" energy. πŸ’…

🌸 SYNOPSIS 🌸

#include <Xm/MultiList.h>
int * XmMultiListGetSelectedRowArray(
Widget widget,
int * num_rows);

πŸŽ€ DESCRIPTION πŸŽ€

This routine creates an array of integers which are selected row numbers in the MultiList widget. Like, it's literally assembling the receipts of which rows are chosen. 🧾✨

  • widget β€” Specifies the ID of the MultiList widget. That's your MultiList bestie right there. 🫢
  • num_rows β€” Specifies pointer to the integer indicates number of returned row numbers. So it's a pointer to the integer that says how many row numbers came back. Lowkey important. πŸ‘‘

For a complete definition of MultiList and its associated resources, see XmMultiList(3). Go read that if you want the whole lore. πŸ“š

πŸ’– RETURN πŸ’–

The int * returned by this function contains a selected rows numbers array. The calling routine is responsible for freeing the returned pointer with XtFree(). Yes, you gotta clean up after yourself, no leaving your mess for the server. 🧹

The function will return NULL if no elements are selected. So if nothing's selected, you get NULL, and that's the vibe check. πŸ’€

XmMultiList(3).


Signing off from the XmMultiList...tedRowArray(library call) footer β€” that's the source/version-ish tag, and the date is giving mystery, but the vibes are forever. πŸ’–βœ¨