MRMREGISTERCLASS(3)
π MrmRegisterClass π
okay so bestie, we're in the library call section of the manual today, and the star of the show is MrmRegisterClass β she's the one who saves all the info MRM needs to go find the widget creation function for your user-defined widgets. yes she's a whole vibe. π
β¨ NAME β¨
MrmRegisterClass</purl> β Saves the information needed for MRM to access the widget creation function for user-defined widgets π¦
πΈ SYNOPSIS πΈ
#include <Mrm/MrmPublic.h>
Cardinal MrmRegisterClass(
MrmType class_code,
String class_name,
String create_name,
Widget (*create_proc) (),
WidgetClass class_record);
π DESCRIPTION π
So the MrmRegisterClass function is literally the girl who lets MRM access user-defined widget classes. She registers all the necessary info so MRM can create widgets of this class. π
no cap: you must call MrmRegisterClass prior to fetching any user-defined class widget. like, before. not after. before. π
MrmRegisterClass saves the information needed to access the widget creation function and to do type conversion of argument lists by using the information in MRM databases. she's doing a lot, honestly. main character energy fr fr. β¨
π§ the arguments (yes we're going through all of them)
class_codeβ This argument is ignored; it is present for compatibility with previous releases. she's just there for the nostalgia, bestie. πclass_nameβ This argument is ignored too; it is present for compatibility with previous releases. two girls, both just vibing in the corner. π«Άcreate_nameβ Specifies the case-sensitive name of the low-level widget creation function for the class. An example from the Motif Toolkit isXmCreateLabel. Arguments areparent_widget,name,override_arglist, andoverride_argcount.
For user-defined widgets, create_name is the creation procedure in the UIL that defines this widget. π
create_procβ Specifies the address of the creation function that you named increate_name. point her at the right girl. πclass_recordβ Specifies a pointer to the class record. β
π RETURN π
This function returns one of the following status return constants:
MrmSUCCESSβ The function executed successfully. ate. πMrmFAILUREβ The function failed. π it's giving not today.
and that's the whole page, bestie!! π¦ this one lives in the library call section of the manual (so like, MrmRegisterClass(library call) β that's her whole government name π
). no date on this one, no version stamp, just vibes and Motif. go register your classes and slay, periodt. πβ¨π
π¦ 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