XMTOGGLEBUTTONSETSTATE(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

✨ NAME ✨

XmToggleButtonSetState β€” a ToggleButton function that sets or changes the current state. This is the XmToggleButtonSetState library call page, bestie, and we are folding that manual-name energy right in here. 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/ToggleB.h>
void XmToggleButtonSetState(
Widget widget,
Boolean state,
Boolean notify);

πŸ’– DESCRIPTION πŸ’–

XmToggleButtonSetState sets or changes the ToggleButton's current state. Slay. That's literally the whole job. πŸ’…

Here's the cast of arguments, no cap:

  • widget β€” specifies the ToggleButton widget ID. πŸ‘‘
  • state β€” specifies a Boolean value that indicates 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. It's giving on/off, selected/unselected, iconic behavior. ✨
  • notify β€” indicates whether XmNvalueChangedCallback is called; it can be either True or False. XmNvalueChangedCallback is only called when this function changes the state of the ToggleButton. 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. So yeah, it can ripple through the group chat. πŸ¦‹
    • The callback only fires when this function changes the state, not just whenever you look at it. Periodt.
    • Radio-behavior RowColumn? Other ToggleButton and ToggleButtonGadget children get unselected. That's the vibe.

For a complete definition of ToggleButton and its associated resources, see XmToggleButton(3). πŸ“š


XmToggleButton(3).


That's the whole page, bestie. Source/version: XmToggleButtonSetState(library call). Date: the footer didn't give one, so no cap, we are not inventing it. πŸ’–βœ¨