MRMFETCHCOLORLITERAL(3)
π NAME π
MrmFetchColorLiteral β bestie, this function fetches a named color literal out of a UID file. That's the whole job. She's a fetch girlie. π
β¨ SYNOPSIS β¨
#include <Mrm/MrmPublic.h>
Cardinal MrmFetchColorLiteral(
MrmHierarchy hierarchy_id,
String index,
Display *display,
Colormap colormap_id,
Pixel *pixel);
π¦ DESCRIPTION π¦
Okay so the MrmFetchColorLiteral function fetches a named color literal from a UID file, and converts the color literal to a pixel color value. Two steps, zero drama, she ate. π
Now the arguments, one by one, no skipping, periodt:
hierarchy_idβ the ID of the UID hierarchy that contains the literal you're after. You got this value from an earlier call toMrmOpenHierarchyPerDisplay, so likeβ¦ she remembers you from last time. π«Άindexβ the UIL name of the color literal you wanna fetch. Heads up bestie: you must define this name in UIL as an exported value, or it's giving nothing. β¨displayβ the display used for the pixmap. This arg specifies the connection to the X server. For more info on theDisplaystructure, go see the Xlib functionXOpenDisplay. iykyk πcolormap_idβ the ID of the color map. And ifcolormap_idisNULL, the default color map gets used instead. lowkey convenient. πpixelβ this one returns the ID of the color literal. She gives back. π
π₯ RETURN π₯
This function returns one of the following status return constants, and you should actually check which one, no cap:
MrmSUCCESSβ the function executed successfully. slay!! πMrmBAD_HIERARCHYβ the hierarchy ID was invalid. not the hierarchy ID being fake πMrmNOT_FOUNDβ the color literal was not found in the UIL file. she's not there, bestie. πMrmWRONG_TYPEβ the caller tried to fetch a literal of a type not supported by this function. wrong vibe, wrong type, we don't do that here. πMrmFAILUREβ the function failed. it's giving failure. that's it, that's the whole constant. π
πΈ RELATED πΈ
Go read these next, they're the friend group:
MrmFetchBitmapLiteral(3)MrmOpenHierarchyPerDisplay(3)MrmFetchIconLiteral(3)MrmFetchLiteral(3)XOpenDisplay(3)
and that's the whole page, bestie π this one's filed under MrmFetchColorLiteral(library call) β no date on it, she's timeless like that β¨ go fetch ur color literal and be iconic ππ
π¦ 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