XMVACREATEMANAGEDTOGGLEBUTTONGADGET(3)
π XMVACREATEMANAGEDTOGGLEBUTTONGADGET(3) π
okay bestie, so this one is a library call β it lives in section 3 of the manual, and it's all about the ToggleButtonGadget widget convenience creation functions. Two of them, actually: XmVaCreateToggleButtonGadget and XmVaCreateManagedToggleButtonGadget. they're twins, basically, and they exist so you don't have to do the whole varargs dance by hand. iconic behavior tbh π
β¨ NAME β¨
XmVaCreateToggleButtonGadget, XmVaCreateManagedToggleButtonGadget β A ToggleButtonGadget widget convenience creation functions. π
π¦ SYNOPSIS π¦
#include <Xm/ToggleBG.h>
Widget XmVaCreateToggleButtonGadget(
Widget parent,
String name,
...);
Widget XmVaCreateManagedToggleButtonGadget(
Widget parent,
String name,
...);
πΈ DESCRIPTION πΈ
so these functions create an instance of a ToggleButtonGadget widget and returns the associated widget ID. yes, "returns" β that's what the page says, we're not fixing grammar on a manpage, we're respecting our elders. π«Ά These routines use the ANSI C variable-length argument list (varargs) calling convention.
The XmVaCreateToggleButtonGadget function is a convenience routine that calls XtCreateWidget.
The XmVaCreateToggleButtonGadget function is a convenience routine that calls XtCreateManagedWidget.
not me noticing the doc says the same function name twice π ngl that's literally what it says, so that's what you get. i'm not out here editing source material, i'm out here translating it. lowkey obsessed with the audacity though π
parentβ Specifies the parent widget ID. it's the mom of the situation, the widget that's gonna claim this gadget as its own. πnameβ Specifies the name of the created widget. yes bestie, you gotta name your baby. πΌ...β Specifies the variable argument list to override the resource defaults. this is where you show up with all your little resource tweaks like it's a group chat and you're replying to every single message. β¨
For a complete definition of ToggleButtonGadget and its associated resources, see XmToggleButtonGadget(3). go read that one too, it's giving main character energy. π
π RETURN π
Returns the ToggleButtonGadget widget ID. that's your receipt, bestie, hold onto it. π§Ύπ
π RELATED π
okay that's the whole page, no cap. π the footer on this one just says XmVaCreateT...uttonGadget(library call) β yeah, the name got truncated mid-word in the footer, we love a dramatic ellipsis moment β and it's a library call page, section 3, so that's the source/version vibe right there. slay, go make some toggle button gadgets. π¦β¨π
π¦ 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