MRMREGISTERCLASS(3)

πŸ“¦
version 2.3.8 Β· 3 versions
, in arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 is XmCreateLabel. Arguments are parent_widget, name, override_arglist, and override_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 in create_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. πŸŽ€βœ¨πŸ’–