XMVACREATEDRAWNBUTTON(3)
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 π
XmVaCreateDrawnButtonis a convenience routine that callsXtCreateWidget. lowkey the straightforward one.XmVaCreateManagedDrawnButtonis a convenience routine that callsXtCreateManagedWidget. 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 π
β¨ RELATED β¨
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 πΈπ¦
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms