MRMFETCHWIDGET(3)
π NAME π
MrmFetchWidget β she fetches and creates an indexed (aka UIL named) application widget and all its children π«Ά (yes this is the library-call one, iykyk)
πΈ SYNOPSIS πΈ
#include <Mrm/MrmPublic.h>
Cardinal MrmFetchWidget(
MrmHierarchy hierarchy_id,
String index,
Widget parent_widget,
Widget *widget,
MrmType *class);
β¨ DESCRIPTION β¨
okay so bestie, MrmFetchWidget fetches and creates an indexed application widget plus its entire lil subtree of children π An "indexed application widget" is literally just any widget that's named in UIL, no cap. And here's the tea: in fetch operations, the fetched widget's subtree gets fetched and created right along with it π¦
but listen β this widget must not appear as the child of a widget within its own subtree. like that's a hard no, do not do it π
Also MrmFetchWidget does not execute XtManageChild for the newly created widget. So she makes it, she does not manage it. periodt π
And one more thing you need to know: all widgets fetched by a call to MrmFetchWidget are not managed at the time of their creation callbacks π (yes, fr fr, that's the vibe)
π§ the arguments, bestie π§
hierarchy_idβ the ID of the UID hierarchy that's holding your interface definition. You got this value back from a previous call toMrmOpenHierarchyPerDisplay. β¨indexβ the UIL name of the widget you want to fetch. like, her government name πΈparent_widgetβ the parent widget ID. that's the momma πwidgetβ returns the widget ID of the created widget. congrats, it's a widget πclassβ this one is very serious: it must be set to an actual pointer, it cannot be aNULLpointer.MrmFetchWidgetsets this argument to an implementation dependent value. so don't pass her nothing or she'll be upset π
okay so what can you actually do with her? An application can fetch any named widget in the UID hierarchy using MrmFetchWidget β¨ MrmFetchWidget can be called at any time to fetch a widget that was not fetched at application startup. She can be used to defer fetching pop-up widgets until they are first referenced (presumably in a callback), and then used to fetch them once. main character energy tbh π
MrmFetchWidget can also create multiple instances of a widget (and its subtree) π In this case, the UID definition functions as a template; a widget definition can be fetched any number of times. An application can use this template to make multiple instances of a widget, for example, in a dialog box box or menu. slay π
The index (UIL name) that identifies the widget must be known to the application. so like, memorize her name bestie π«Ά
β RETURN β
This function returns one of the following status return constants:
MrmSUCCESSβ the function executed successfully. ate and left no crumbs πMrmBAD_HIERARCHYβ the hierarchy ID was invalid. she doesn't know her πMrmNOT_FOUNDβ the widget was not found in UID hierarchy. she's not here bestie πMrmFAILUREβ the function failed. it's giving tragedy π
π RELATED π
and that's the whole page bestie π«Ά this was MrmFetchWidget(library call) β yeah, the library call section of the manual, that's the one π go forth and fetch responsibly β¨ππ¦πΈ
π¦ 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