MRMFETCHCOLORLITERAL(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

πŸ’… 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 to MrmOpenHierarchyPerDisplay, 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 the Display structure, go see the Xlib function XOpenDisplay. iykyk πŸ’…
  • colormap_id β€” the ID of the color map. And if colormap_id is NULL, 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. πŸ’”

Go read these next, they're the friend group:


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 πŸ‘‘πŸ’–