XMVACREATESIMPLERADIOBOX(3)
π NAME π
XmVaCreateSimpleRadioBox β a RowColumn widget convenience creation function, bestie. That's the whole vibe. It makes a radio box. For you. Slay.
β¨ SYNOPSIS β¨
#include <Xm/RowColumn.h>
Widget XmVaCreateSimpleRadioBox(
Widget parent,
String name,
int button_set,
XtCallbackProc callback);
π DESCRIPTION π
Okay so. XmVaCreateSimpleRadioBox creates an instance of a RowColumn widget of type XmWORK_AREA and hands you back the associated widget ID. That's it, that's the job. It uses the ANSI C variable-length argument list (varargs) calling convention, which is giving "trust me, the arguments are in there somewhere" energy.
This routine creates a RadioBox and its ToggleButtonGadget children β a whole little friend group. The name of each button is button_n, where n is an integer from 0 (zero) to the number of buttons in the menu minus 1. Numbering from zero, as the universe intended. π
Here are the main character arguments:
parentβ specifies the parent widget ID. It's the mom of the operation. πnameβ specifies the name of the created widget.button_setβ specifies which button is initially set. The value is the integer n in the button namebutton_n. So like, if you wantbutton_3to be the one holding the aux, pass3.callbackβ specifies a callback procedure to be called when a button's value changes. This callback function is added to each button after creation as the button'sXmNvalueChangedCallback. The callback function is called when a button's value changes, and the button number is returned in theclient_datafield. So the button tattles on itself. Love that for us. π«Ά
The variable portion of the argument list consists of groups of arguments. The first argument in each group is a constant or a string and determines which arguments follow in that group. The last argument in the list must be NULL. Not optional, not negotiable, it's the periodt of the whole call. β
Following are the possible first arguments in each group of varargs:
XmVaRADIOBUTTONβ this is followed by four additional arguments. The set specifies one button in the RadioBox and some of its resource values. Following are the additional four arguments, in order:labelβ the label string, of typeXmString.mnemonicβ the mnemonic, of typeKeySym. This is ignored in this release. πacceleratorβ the accelerator, of typeString. This is ignored in this release. πaccelerator_textβ the accelerator text, of typeXmString. This is ignored in this release. π
resource_nameβ this is followed by one additional argument, the value of the resource, of typeXtArgVal. The pair specifies a resource and its value for the RowColumn widget. Dynamic duo behavior.XtVaTypedArgβ this is followed by four additional arguments. The set specifies a resource and its value for the RowColumn widget. A resource type conversion is performed if necessary. Following are the additional four arguments, in this order:nameβ the resource name, of typeStringtypeβ the type of the resource value supplied, of typeStringvalueβ the resource value (or a pointer to the resource value, depending on the type and size of the value), of typeXtArgValsizeβ the size of the resource value in bytes, of typeint
XtVaNestedListβ this is followed by one additional argument of typeXtVarArgsList. This argument is a nested list of varargs returned byXtVaCreateArgsList. Nested. Lists. Inception but make it X11. π
For more information on variable-length argument lists, see the X Toolkit Intrinsics documentation.
A number of resources exist specifically for use with this and other simple menu creation routines. For a complete definition of RowColumn and its associated resources, see XmRowColumn(3). Go read it, iykyk. π
π RETURN π
Returns the RowColumn widget ID. That's your prize. Take it. π
π¦ RELATED π¦
XmCreateRadioBox(3)XmCreateRowColumn(3)XmCreateSimpleCheckBox(3)XmCreateSimpleRadioBox(3)XmRowColumn(3)XmVaCreateSimpleCheckBox(3),
(the trailing comma is canon, don't @ me)
And that's the whole page, bestie β this was XmVaCreateSimpleRadioBox(library call) from the XmVaCreateSimpleRadioBox(library call) source, and yeah, the footer is literally just the title again because that's the energy this manpage chose. β¨ Go forth and build radio boxes. Main character energy only. ππΈ
π¦ 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