MRMFETCHWIDGETOVERRIDE(3)
π MRMFETCHWIDGETOVERRIDE(3) π
okay bestie, gather round, because this one is a library call and it's lowkey the glow-up edition of a function you already know. we're in the MrmFetchWidgetOverride era and honestly? she ate. π
β¨ NAME β¨
MrmFetchWidgetOverride β fetches any indexed (UIL named) application widget. and the whole point, the moment, the drama: it overrides the arguments specified for this application widget in UIL. no cap. π
πΈ SYNOPSIS πΈ
#include <Mrm/MrmPublic.h>
Cardinal MrmFetchWidgetOverride(
MrmHierarchy hierarchy_id,
String index,
Widget parent_widget,
String override_name,
ArgList override_args,
Cardinal override_num_args,
Widget *widget,
MrmType *class);
π¦ DESCRIPTION π¦
so MrmFetchWidgetOverride is literally the extended version of MrmFetchWidget. same energy, same vibe, but with β¨extraβ¨. It is identical to MrmFetchWidget, except that it lets you override the widget's name and any arguments that MrmFetchWidget would otherwise retrieve from the UID file or one of the defaulting mechanisms. and bestie, that means the override argument list is not limited to those arguments in the UID file. you're free. you're unbothered. you're overriding. π
heads up though: the override arguments apply only to the widget fetched and returned by this function. Its children (subtree) do not receive any override parameters. the kids are on their own, sorry not sorry π
now let's meet the parameters, one by one, main character by main character:
hierarchy_idβ Specifies the ID of the UID hierarchy that contains the interface definition. and where did this value come from? It was returned in a previous call toMrmOpenHierarchyPerDisplay. so don't just make it up, bestie, you gotta earn it first. πindexβ Specifies the UIL name of the widget to fetch. this is the one you're pulling out of the lineup.parent_widgetβ Specifies the parent widget ID. every icon needs a support system fr fr π«Άoverride_nameβ Specifies the name to override the widget name. Use aNULLvalue if you do not want to override the widget name. no notes, just vibes.override_argsβ Specifies the override argument list, exactly as given toXtCreateWidget(conversion complete and so forth). Use aNULLvalue if you do not want to override the argument list. literally copy-paste energy, don't get creative with the format.override_num_argsβ Specifies the number of arguments inoverride_args. count them. all of them. πwidgetβ Returns the widget ID of the created widget. this is your new baby, she's here. πclassβ Returns the class code identifying MRM's widget class. Literals identifying MRM widget class codes are defined in the include fileMrm/MrmPublic.h. iykyk.
π RETURN VALUE π
this function returns one of the following status return constants, and bestie, you will be checking them:
MrmSUCCESSβ The function executed successfully. slay. iconic. no notes. β¨MrmBAD_HIERARCHYβ The hierarchy ID was invalid. π not the hierarchy being fake.MrmNOT_FOUNDβ The widget was not found in UID hierarchy. she's not here. she left. πMrmFAILUREβ The function failed. it's giving rough day, and honestly? we've all been there.
π RELATED π
okay that's the whole page, you're welcome, go forth and override responsibly π and just so you know, this whole thing is filed under MrmFetchWidgetOverride(library call) β that's the official stamp, keep it in your notes bestie, mwah π
β¨ππ¦
π¦ where this page comes from
- 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