XMCREATETOGGLEBUTTONGADGET(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 πŸ’–

XmCreateToggleButtonGadget β€” bestie, it's literally the ToggleButtonGadget creation function ✨


🌸 SYNOPSIS 🌸

okay so first you gotta pull in the header, no cap:

#include <Xm/ToggleBG.h>
Widget XmCreateToggleButtonGadget(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);

πŸŽ€ DESCRIPTION πŸŽ€

So XmCreateToggleButtonGadget makes you a brand new instance of a ToggleButtonGadget and hands you back the widget ID that goes with it. That's it, that's the whole vibe πŸ¦‹

Here's the tea on the arguments you're passing in:

  • parent β€” the parent widget ID, aka who's adopting this lil gadget πŸ‘‘
  • name β€” the name of the widget you just created, give it a cute one πŸ’…
  • arglist β€” the argument list, where all your attribute/value pairs live πŸ“‹
  • argcount β€” how many attribute/value pairs are chillin' in that arglist up there πŸ”’
If you want the full rundown on ToggleButtonGadget and every resource it comes with, you gotta go read XmToggleButtonGadget(3). That's where the lore lives, iykyk 🫢

⭐ RETURN ⭐

It returns the ToggleButtonGadget widget ID. That's your little receipt, keep it safe 🧾✨



and that's a wrap, bestie!! πŸŽ€ This page is a library call from the XmCreateTog...uttonGadget family β€” yes the name is literally abbreviated like that in the footer, iconic behaviour honestly πŸ˜­πŸ’– now go make some toggle buttons, you're gonna slay πŸ”₯πŸ‘‘