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

✨ XmVaCreatePushButton β€” a PushButton widget convenience creation function ✨

okay bestie, welcome to the XmVaCreatePushButton page πŸ’… it's a library call, it lives in the X/Motif corner of your system, and it's genuinely so chill. it makes PushButtons. that's the whole vibe. let's get into it 🫢


🌸 NAME 🌸

XmVaCreatePushButton, XmVaCreateManagedPushButton β€” A PushButton widget convenience creation functions.

like... the name literally tells you what it is. convenience. iconic behavior honestly πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/PushB.h>

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

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

see how they match? twins fr fr πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

okay so these functions create an instance of a ToggleButtonGadget widget and returns the associated widget ID. yes, that's what the page says, and we're keeping it exactly as-is, no editing, no notes, periodt πŸ’€ These routines use the ANSI C variable-length argument list (varargs) calling convention β€” which is just the fancy way of saying "you can keep passing stuff after name and it'll deal with it" ✨

The XmVaCreatePushButton function is a convenience routine that calls XtCreateWidget.

The XmVaCreatePushButton function is a convenience routine that calls XtCreateManagedWidget.

not me reading that twice... the page says XmVaCreatePushButton both times and we are not touching a single character of it, bestie, that's the rules πŸ™ˆ

Now the args, one by one, no skipping πŸ‘‡

  • parent β€” Specifies the parent widget ID.
  • name β€” Specifies the name of the created widget.
  • ... β€” Specifies the variable argument list to override the resource defaults.

For a complete definition of PushButton and its associated resources, see XmPushButton(3). go read it, it's giving main character energy πŸ“–


🌈 RETURN 🌈

Returns the PushButton widget ID. that's it. that's the tea πŸ“ hold onto it, you'll need it.


the whole friend group, together at last 🫢✨


and that's the page, bestie!! this was XmVaCreatePushButton(library call) β€” library call, mwah πŸ’… β€” brought to you from the source/version and date that sit right there at the bottom of the original, and we're sending them off with a lil kiss 😘 go make some buttons, you're gonna slay πŸŽ€πŸ’–πŸ”₯