XMTOGGLEBUTTONGADGETSETSTATE(3)
π XmToggleButtonGadgetSetState π
okay so bestie, welcome to the library call corner of the manual β this one's about XmToggleButtonGadgetSetState, a ToggleButtonGadget function that sets or changes the current state. yes, that's the whole vibe. she flips the switch. iconic behavior honestly. π
β¨ SYNOPSIS β¨
#include <Xm/ToggleBG.h>
void XmToggleButtonGadgetSetState(
Widget widget,
Boolean state,
Boolean notify);
πΈ DESCRIPTION πΈ
XmToggleButtonGadgetSetState sets or changes the ToggleButtonGadget's current state. that's it, that's the job, and she does it flawlessly. π
widgetβ specifies the ToggleButtonGadget widget ID. like, which button are we talking about, bestie? this one. πstateβ specifies a Boolean value that indicates whether the ToggleButtonGadget state is selected or unselected. if the value isTrue, the button state is selected; if it isFalse, the button state is unselected. literally just on or off, no in-between, no maybe. βnotifyβ indicates whetherXmNvalueChangedCallbackis called; it can be eitherTrueorFalse. and here's the tea π: theXmNvalueChangedCallbackis only called when this function changes the state of the ToggleButtonGadget. so if nothing actually changed, no callback, no drama, she's not gonna text you for nothing.
also, when this argument is True and the ToggleButtonGadget is a child of a RowColumn widget whose XmNradioBehavior is True, setting the ToggleButtonGadget causes other ToggleButton and ToggleButtonGadget children of the RowColumn to be unselected. yeah β radio behavior means one main character at a time, and everyone else gets quietly unselected. the way that a group can only have one winnerβ¦ π it's giving high school honestly.
for a complete definition of ToggleButtonGadget and its associated resources, see XmToggleButtonGadget(3). go read it, it's a whole thing, you'll love it. π¦
π RELATED π
and that's the page, bestie!! this was the XmToggleBut...getSetState(library call) situation β same energy, same facts, just with more sparkle. π«Άβ¨π
π¦ 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