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

XmVaCreateDrawnButton πŸ’…

okay so bestie, welcome to the XmVaCreateDrawnButton page β€” it's a library call from the X Toolkit / Motif universe, and it's genuinely so much easier than it sounds, i promise 🫢


✨ NAME ✨

XmVaCreateDrawnButton, XmVaCreateManagedDrawnButton β€” the DrawnButton widget convenience creation functions. yes, they're convenience functions, which is basically the C equivalent of a pre-made matcha at the register: less work, same result 🍡


✨ SYNOPSIS ✨

#include <Xm/DrawnB.h>

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

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

✨ DESCRIPTION ✨

so these functions do the thing: they create an instance of a DrawnButton widget and hand you back the associated widget ID. the routines use the ANSI C variable-length argument list calling convention β€” aka varargs, aka the ... in the signature, aka the reason your function can take however many resource overrides you feel like throwing at it πŸ’€

  • XmVaCreateDrawnButton is a convenience routine that calls XtCreateWidget. lowkey the straightforward one.
  • XmVaCreateManagedDrawnButton is a convenience routine that calls XtCreateManagedWidget. it's giving managed, which is a whole vibe.

and the arguments, bestie, in order:

  • parent β€” Specifies the parent widget ID. it's the mother, the anchor, the main character this widget is being born into πŸ‘‘
  • name β€” Specifies the name of the created widget. name it something cute, you'll be looking it up forever ✨
  • ... β€” Specifies the variable argument list to override the resource defaults. this is your moment to customize, go off πŸŽ€
for a complete definition of DrawnButton and its associated resources, go read XmDrawnButton(3). fr fr, that's where the lore lives πŸ“–

✨ RETURN ✨

returns the DrawnButton widget ID. that's it, that's the gift πŸ’



and that's the whole page, no cap πŸ§šπŸ’œ XmVaCreateDrawnButton is a library call page, and this version is a faithful little remix of it β€” same facts, same sections, just with infinitely better energy. slay, go make some widgets, bye bestie πŸŒΈπŸ¦‹