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

XmVaCreatePushButtonGadget, XmVaCreateManagedPushButtonGadget β€” bestie, these are the PushButtonGadget widget convenience creation functions πŸ’– (yes, both of them, we're doing a two-for-one)


🌸 SYNOPSIS 🌸

#include <Xm/PushBG.h>

Widget XmVaCreatePushButtonGadget(
Widget parent,
String name,
...);

Widget XmVaCreateManagedPushButtonGadget(
Widget parent,
String name,
...);

Two functions, same shape, one very important difference, we'll get to it, promise 🫢


πŸŽ€ DESCRIPTION πŸŽ€

okay so. These functions create an instance of a ToggleButtonGadget widget and returns the associated widget ID. πŸ’… And these routines use the ANSI C variable-length argument list (varargs) calling convention β€” so that ... at the end? That's doing the heavy lifting, not just vibes. ✨

The XmVaCreatePushButtonGadget function is a convenience routine that calls XtCreateWidget.

The XmVaCreatePushButtonGadget function is a convenience routine that calls XtCreateManagedWidget.

fr fr that's exactly what it says, we're reporting the lore as-is, no editing, no editorialising 🫑

Now the arguments, one by one, no skipping, we're thorough in this house πŸ‘‘

  • parent β€” Specifies the parent widget ID. like, whose kid is this widget. 🍼
  • name β€” Specifies the name of the created widget. give it a name bestie, it deserves one 🏷️
  • ... β€” Specifies the variable argument list to override the resource defaults. this is where you get to be picky about literally everything ✨

For a complete definition of PushButtonGadget and its associated resources, see XmPushButtonGadget(3). go read it, it's giving essential 🌈


πŸ’– RETURN πŸ’–

Returns the PushButtonGadget widget ID. 🎁 That's your widget, right there, hold it gently.


the whole friend group, they all show up to the function πŸ’œ


that's the whole page bestie, you ate it πŸ’…βœ¨

this one's from the XmVacreatep...uttongadget library call corner of the universe, dated whenever this manpage was last touched β€” and yeah, the footer was literally XmVaCreateP...uttonGadget(library call), so there you go, mystery solved, ily, bye πŸŽ€πŸ«Ά