MRMFETCHICONLITERAL(3)
π MrmFetchIconLiteral β the library call that's literally serving icon literals π
ok bestie, gather round, because today we're talking about MrmFetchIconLiteral, a little library call from the Mrm family (you know, the Motif resource manager girlies) and she is so useful. Her whole job? Pull an icon literal out of an MRM hierarchy and turn it into an actual X pixmap. It's giving "glow up, but make it pixel data." β¨
πΈ NAME πΈ
MrmFetchIconLiteral β fetches an icon literal from a hierarchy. no cap, that's the entire vibe. π
β¨ SYNOPSIS β¨
#include <Mrm/MrmPublic.h>
Cardinal MrmFetchIconLiteral(
MrmHierarchy hierarchy_id,
String index,
Screen *screen,
Display *display,
Pixel fgpix,
Pixel bgpix,
Pixmap *pixmap);
yes she takes seven arguments. seven. she's high maintenance and she's worth it. π«Ά
π DESCRIPTION π
The MrmFetchIconLiteral function fetches an icon literal from an MRM hierarchy and converts the icon literal to an X pixmap. that's the whole plot. that's the movie. π
now let's meet the cast, one by one, because every single one of them matters:
hierarchy_idβ Specifies the ID of the UID hierarchy that contains the specified icon literal. And bestie, you can't just make this up β thishierarchy_idwas returned in a previous call toMrmOpenHierarchyPerDisplay. so if you skipped that step, that's on you. πindexβ Specifies the UIL name of the icon literal to fetch. it's the name, the lookup key, the "hey girl are you in there" of it all.screenβ Specifies the screen used for the pixmap. Thescreenargument specifies a pointer to the Xlib structureScreen, which contains the information about that screen and is linked to theDisplaystructure. want more lore on theDisplayandScreenstructures? see the Xlib functionXOpenDisplayand the associated screen information macros. iykyk. π₯οΈdisplayβ Specifies the display used for the pixmap. Thedisplayargument specifies the connection to the X server. again, for more info on theDisplaystructure, go look at the Xlib functionXOpenDisplay. it's the group chat between you and the X server, fr fr.fgpixβ Specifies the foreground color for the pixmap. your icon's main character color. πbgpixβ Specifies the background color for the pixmap. the supporting role that makes the fg pop.pixmapβ Returns the resulting X pixmap value. The function allocates space for this pixmap. The application is responsible for managing the allocated space. The application can recover the allocated space by callingXmDestroyPixmap. translation bestie: she hands you the keys, but YOU are driving. don't forget to clean up after yourself or the memory leak is gonna be your villain origin story. ππ
π₯ RETURN π₯
This function returns one of the following status return constants. vibe check time:
MrmSUCCESSβ The function executed successfully. ate and left no crumbs. β¨MrmBAD_HIERARCHYβ The hierarchy ID was invalid. that hierarchy is not who she said she was. πMrmNOT_FOUNDβ The icon literal was not found in the hierarchy. she's just not there, bestie. gone. not in this hierarchy. πMrmWRONG_TYPEβ The caller tried to fetch a literal of a type not supported by this function. wrong function, wrong type, wrong era, respectfully. πMrmFAILUREβ The function failed. it's giving flop. it happens. π«Ά
heads up: always check the return value before you start celebrating. MrmSUCCESS is the only one that means go off. everything else means debug era. π
π RELATED π
go read these next, they're the friend group:
MrmFetchBitmapLiteral(3)MrmOpenHierarchyPerDisplay(3)MrmFetchLiteral(3)MrmFetchColorLiteral(3)XOpenDisplay(3)
and that's the whole page, bestie. this was MrmFetchIconLiteral(library call) β yes, that's both the title and the footer, she's consistent like that, no date drama, just pure library-call energy. now go fetch some icon literals and slay. π§πβ¨
π¦ 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