XMVACREATEMANAGEDICONGADGET(3)
β¨ XmVaCreateIconGadget β¨
okay bestie, welcome to the IconGadget convenience creation functions page π this is a <library call>, aka the vibe is library, and we're about to make widgets with basically zero effort. slay.
πΈ SYNOPSIS πΈ
#include <Xm/IconG.h>
Widget XmVaCreateIconGadget(
Widget parent,
String name,
...);
Widget XmVaCreateManagedIconGadget(
Widget parent,
String name,
...);
no cap, that's the whole thing. two functions, both returning a Widget, both taking a parent, a name, and then a little ... moment β¨
π¦ DESCRIPTION π¦
so these functions create an instance of a IconGadget widget and hand you back the associated widget ID. that's it, that's the job. π
and the way they do it? these routines use the ANSI C variable-length argument list (varargs) calling convention. iykyk. it's giving classic X Toolkit energy.
here's the breakdown of the two besties:
XmVaCreateIconGadgetβ a convenience routine that callsXtCreateWidget. lowkey just a lil shortcut so you don't have to type the whole thing yourself π«ΆXmVaCreateManagedIconGadgetβ a convenience routine that callsXtCreateManagedWidget. same energy, but managed, which is the main character version ngl π
and now the args, fr fr:
parentβ Specifies the parent widget ID. your widget needs a home, bestie πnameβ Specifies the name of the created widget. give it a cute name, it deserves one π...β Specifies the variable argument list to override the resource defaults. this is where you get to customize and make it yours β¨
for the full tea on IconGadget and all its associated resources, go read XmIconGadget(3). not me sending you to another page but like... it's necessary π
π« RETURN π«
Returns the IconGadget widget ID. iconic. you get a widget ID back, go forth and use it π
π§ RELATED π§
XmVaCreateIconGadget(library call) β that's the source and version tag, and the date lives on that same footer line, so consider this your lil sign-off bestie π«Άβ¨ go make some widgets, you absolute legend ππΈπ¦
π¦ 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