XMTOGGLEBUTTONSETVALUE(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 is True, the button state is selected ✨; if it is False, the button state is unselected πŸ’€; and if it is XmINDETERMINATE, the button state is neither. not up, not down, just… existing. the liminal space of button states 🌈
  • notify β€” this one decides whether XmNvalueChangedCallback gets called, and it can be either True or False. and listen, important detail: XmNvalueChangedCallback is 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 is True and the ToggleButton is a child of a RowColumn widget whose XmNradioBehavior is True, 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 πŸ’œ



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 πŸ’…πŸŒΈ