XMCREATETOGGLEBUTTONGADGET(3)
π 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 thatarglistup 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 π§Ύβ¨
π RELATED π
XmToggleButtonGadget(3)β go read it, it's giving essential π
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 π₯π
π¦ 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