XMCREATEPUSHBUTTON(3)
π XmCreatePushButton π
okay so bestie, we're in the <Xm/PushB.h> girlie section of the library calls, and this one is literally the moment a PushButton gets born. no cap. β¨
πΈ NAME πΈ
XmCreatePushButton β the PushButton widget creation function. it makes buttons. pushable ones. iconic behaviour honestly π
π SYNOPSIS π
#include <Xm/PushB.h>
Widget XmCreatePushButton(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
look at that signature. four args. she's simple, she's clean, she's serving π«Ά
β¨ DESCRIPTION β¨
XmCreatePushButton creates an instance of a PushButton widget and returns the associated widget ID. that's it. that's the whole job. she ate and left no crumbs π
now let's do a lil vibe check on the args, one by one, no skipping:
parentβ Specifies the parent widget ID. it's giving "who's your mother" energy, because every widget needs a home πnameβ Specifies the name of the created widget. name her something cute, she deserves it πarglistβ Specifies the argument list. all the attribute/value pairs you wanna slide in there πargcountβ Specifies the number of attribute/value pairs in the argument list (arglist). yes, you have to count them yourself. it's a whole thing, but we move π
For a complete definition of PushButton and its associated resources, see XmPushButton(3). go read that one too, it's the main character of this whole situation π₯
π RETURN π
Returns the PushButton widget ID. boom. you got a widget ID. put it somewhere safe bestie, you're gonna need it π«Ά
π¦ RELATED π¦
and that's the whole page fr fr π this little gem lives in the XmCreatePushButton(library call) manual, so if you ever forget where you found her, that's the vibe. mwah, go push some buttons πβ¨πΈ
π¦ 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