XMVACREATETOGGLEBUTTON(3)
β¨ NAME β¨
okay so bestie, welcome to the library call zone π we're doing two functions today, and they're basically twins:
XmVaCreateToggleButtonXmVaCreateManagedToggleButton
they're a ToggleButton widget convenience creation functions situation β¨ that's it, that's the name section, slay.
πΈ SYNOPSIS πΈ
#include <Xm/ToggleB.h>
Widget XmVaCreateToggleButton(
Widget parent,
String name,
...);
Widget XmVaCreateManagedToggleButton(
Widget parent,
String name,
...);
like. look at them. matching outfits. iconic π
π¦ DESCRIPTION π¦
so what these do is create an instance of a ToggleButtonGadget widget, and then hand you back the associated widget ID. cute, right? π
both of these routines use the ANSI C variable-length argument list (varargs) calling convention β so yeah, the ... is doing real work, no cap.
lowkey important: the page says theXmVaCreateToggleButtonfunction is a convenience routine that callsXtCreateWidget.
and it also says theXmVaCreateToggleButtonfunction is a convenience routine that callsXtCreateManagedWidget. that's exactly how it's written, so that's how we're keeping it, fr fr π
here's the args, bestie:
parentβ specifies the parent widget ID. your widget needs a home πnameβ specifies the name of the created widget....β specifies the variable argument list to override the resource defaults. this is your moment to be extra β¨
and if you want the complete definition of ToggleButton plus all its associated resources, go read XmToggleButton(3). it's giving required reading π
π RETURN π
returns the ToggleButton widget ID. that's your little ticket, bestie, guard it with your life π«Ά
π RELATED π
the whole friend group:
okay that's the whole page π this was XmVaCreateToggleButton(library call) β literally the title and the footer, same energy, main character of its own manpage π and it's filed under the library call manual, section 3. that's the whole vibe check, bestie β go make some toggle buttons, you got this π
β¨π
π¦ 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