XMCREATEPUSHBUTTONGADGET(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

πŸ’– XmCreatePushButtonGadget πŸ’–

okay bestie, welcome to the XmCreatePushButtonGadget(library call) page β€” yes that's the real title, and yes it's a library call page, so we're in the C API zone, hydration check first, then we go 🫢


✨ NAME ✨

XmCreatePushButtonGadget β€” the PushButtonGadget creation function. that's it. that's the whole job. she creates, you press, everyone eats πŸ’…


🌸 SYNOPSIS 🌸

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

lowkey iconic signature, no notes ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

XmCreatePushButtonGadget creates an instance of a PushButtonGadget widget and returns the associated widget ID. boom. a whole button, born, handed to you by its ID like a little baby birth certificate πŸŽ€

now the four things you have to feed her, in order, no skipping:

  • parent β€” specifies the parent widget ID. aka where this button lives. she needs a home fr fr 🏠
  • name β€” specifies the name of the created widget. give her a name bestie, she deserves one πŸ’œ
  • arglist β€” specifies the argument list. the whole vibe-config situation.
  • argcount β€” specifies the number of attribute/value pairs in the argument list (arglist). count them. correctly. no cap.
and for a complete definition of PushButtonGadget and its associated resources, you go read XmPushButtonGadget(3). that's the deep lore page, this one's just the creation ritual 🌈

⭐ RETURN ⭐

Returns the PushButtonGadget widget ID. that's the prize. hold it gently, keep it safe, you'll need it later πŸ˜­πŸ’–



and that's the page bestie!! go forth and make buttons, you're doing amazing sweetie πŸ’…βœ¨

sign-off szn: this whole thing is the XmCreatePushButtonGadget(library call) page, footer and all β€” same title up top, same title at the bottom, so you literally can't get lost. mwah πŸ’‹ no version numbers or dates were harmed in the making of this rewrite, they're just living in the footer where they belong πŸŽ€πŸ«Ά