MRMFETCHSETVALUES(3)
๐ MrmFetchSetValues โ the girlies are fetching values
okay so bestie, welcome to MrmFetchSetValues from the library call girlies โจ this one is literally all about grabbing the values you wanna set out of literals chilling in your UID files. no cap. ๐
โจ SYNOPSIS โจ
#include <Mrm/MrmPublic.h>
Cardinal MrmFetchSetValues(
MrmHierarchy hierarchy_id,
Widget widget,
ArgList args,
Cardinal num_args);
๐ธ DESCRIPTION ๐ธ
So MrmFetchSetValues is giving XtSetValues but make it UIL, fr fr. The way that it works is the values you're setting are defined by the UIL named values that live in the UID hierarchy. MrmFetchSetValues fetches the values to be set from literals stored in UID files. iconic behaviour honestly ๐
hierarchy_idโ Specifies the ID of the UID hierarchy that contains the specified literal. The value ofhierarchy_idwas returned in a previous call toMrmOpenHierarchyPerDisplay. so like, you gotta have opened it already, periodt.widgetโ Specifies the widget that is modified. yes bestie, that one. the one getting a glow-up. ๐argsโ Specifies an argument list that identifies the widget arguments to be modified as well as the index (UIL name) of the literal that defines the value for that argument. The name part of each argument (args[n].name) must begin with the stringXmNfollowed by the name that uniquely identifies this attribute tag. For example,XmNwidthis the attribute name associated with the core argumentwidth. The value part (args[n].value) must be a string that gives the index (UIL name) of the literal. You must define all literals in UIL as exported values. like, you HAVE to, don't skip that step bestie ๐ซถnum_argsโ Specifies the number of entries inargs. count them. all of them. ๐งฎ
This function sets the values on a widget, evaluating the values as public literal resource references resolvable from a UID hierarchy. Each literal is fetched from the hierarchy, and its value is modified and converted as required. This value is then placed in the argument list and used as the actual value for an XtSetValues call. MrmFetchSetValues allows a widget to be modified after creation using UID file values the same way creation values are used in MrmFetchWidget. see? it's literally the same energy, just post-glow-up ๐
As in MrmFetchWidget, each argument whose value can be evaluated from the UID hierarchy is set in the widget. Values that are not found or values in which conversion errors occur are not modified. so if it can't find it, it justโฆ doesn't. no drama, no change, no notes. ๐ญ
Each entry in the argument list identifies an argument to be modified in the widget. The name part identifies the tag, which begins with XmN. The value part must be a string whose value is the index of the literal. Thus, the following code would modify the label resource of the widget to have the value of the literal accessed by the index OK_button_label in the hierarchy:
args[n].name = XmNlabel;
args[n].value = "OK_button_label";
like hello?? that's the whole vibe right there ๐ฆ
โญ RETURN VALUE โญ
This function returns one of the following status return constants, so pls actually check it:
MrmSUCCESSโ The function executed successfully. slay, we ate. ๐ฅMrmPARTIAL_SUCCESSโ At least one literal was successfully fetched. half a win is still a win bestie ๐MrmBAD_HIERARCHYโ The hierarchy ID was invalid. ๐ that id is not it.MrmFAILUREโ The function failed. it's giving flop, sorry. ๐
๐ RELATED ๐
go read those too, iykyk ๐
and that's the whole page bestie!! this was MrmFetchSetValues from the library call collection โ she's giving very much "library call" energy and honestly? iconic. mwah ๐โจ๐
๐ฆ 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