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

XmCreateList β€” the List widget creation function, aka the lil glow-up spell that ✨conjures✨ a whole List widget out of thin air πŸ’–

This one lives in the library call manual, bestie β€” XmCreateList(library call), if we're being formal about it. We are not. πŸŽ€


🌸 SYNOPSIS 🌸

okay so first you gotta invite the header file to the party:

#include <Xm/List.h>
Widget XmCreateList(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);

that's the whole summoning circle, no cap πŸ•―οΈβœ¨


πŸ’– DESCRIPTION πŸ’–

XmCreateList creates an instance of a List widget and returns the associated widget ID. that's it, that's the job β€” it makes one (1) List widget and hands you back its ID like a bestie handing you a boba πŸ§‹

here's the tea on each argument, one by one, no skipping:

  • parent β€” Specifies the parent widget ID. your new List needs a home, and this is whose house it's moving into 🏠
  • name β€” Specifies the name of the created widget. give it a name, it deserves one πŸ’…
  • arglist β€” Specifies the argument list. all the attribute/value pairs you wanna set go here πŸ“
  • argcount β€” Specifies the number of attribute/value pairs in the argument list (arglist). yes bestie, you literally have to count them yourself. the widget is not gonna count for you 😭
For a complete definition of List and its associated resources, see XmList(3). that's the deep lore, go read it, it's giving textbook but like, in a good way πŸ“š

πŸŽ€ RETURN πŸŽ€

Returns the List widget ID. that's the whole return value. one thing. iconic behavior honestly πŸ‘‘


  • XmList(3) β€” the main character of the List lore, go say hi 🫢

and that's the whole page, bestie!! this was XmCreateList(library call) from the library call manual β€” go forth and create lists, you absolute legend πŸ’–βœ¨πŸŒΈπŸŽ€πŸ¦‹