XMTOGGLEBUTTONSETVALUE(3)
π XmToggleButtonSetValue π
okay so bestie, welcome to XmToggleButtonSetValue β she's a ToggleButton function, she lives in the library call section, and her whole entire job is setting or changing the current state of a ToggleButton. that's it. that's the gig. icon behaviour fr fr π
β¨ NAME β¨
XmToggleButtonSetValue β a ToggleButton function that sets or changes the current state π¦
πΈ SYNOPSIS πΈ
#include <Xm/ToggleB.h>
void XmToggleButtonSetValue(
Widget widget,
XmToggleButtonState state,
Boolean notify);
π DESCRIPTION π
XmToggleButtonSetValue sets or changes the ToggleButton's current state. no cap, that's literally the whole vibe. π
widgetβ bestie, this is the ToggleButton widget ID. you're telling her which button we're talking about. π«Άstateβ this is the moment of truth, the vibe check, the main character decision. it says whether the ToggleButton state is selected or unselected. if the value isTrue, the button state is selected β¨; if it isFalse, the button state is unselected π; and if it isXmINDETERMINATE, the button state is neither. not up, not down, justβ¦ existing. the liminal space of button states πnotifyβ this one decides whetherXmNvalueChangedCallbackgets called, and it can be eitherTrueorFalse. and listen, important detail:XmNvalueChangedCallbackis only called when this function actually changes the state of the ToggleButton. no change, no callback. periodt. π
and here's the tea π: when this argument isTrueand the ToggleButton is a child of a RowColumn widget whoseXmNradioBehaviorisTrue, setting the ToggleButton causes other ToggleButton and ToggleButtonGadget children of the RowColumn to be unselected. yes bestie, the whole squad gets deselected. it's giving "there can only be one" π
for a complete definition of ToggleButton and its associated resources, see XmToggleButton(3). go read it, i'll wait π
π₯ RELATED π₯
okay that's the whole page, you ate that π§ and just so you know where this came from β it's the XmToggleButtonSetValue(library call) page from the library call manual, footer and all, so if you cite it, cite it right bestie π slay, go flip some button states, and remember: XmINDETERMINATE is a lifestyle π
πΈ
π¦ 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