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

πŸ’– MrmFetchBitmapLiteral πŸ’–

okay bestie, so this one is a <rainbow>library call</rainbow> and it's literally the glow-up pipeline for bitmaps: it yanks a bitmap literal out of a hierarchy and turns it into an actual X pixmap. let's get into it ✨


🌸 NAME 🌸

MrmFetchBitmapLiteral β€” fetches a bitmap literal from a hierarchy πŸŽ€


✨ SYNOPSIS ✨

#include <Mrm/MrmPublic.h>
Cardinal MrmFetchBitmapLiteral(
MrmHierarchy hierarchy_id,
String index,
Screen *screen,
Display *display,
Pixmap *pixmap_return,
Dimension *width,
Dimension *height);

πŸ¦‹ DESCRIPTION πŸ¦‹

The MrmFetchBitmapLiteral function fetches a bitmap literal from an MRM hierarchy, and converts the bitmap literal to an X pixmap of depth 1. The function returns this pixmap and its width and height. no cap, that's the whole vibe πŸ’…

  • hierarchy_id β€” specifies the ID of the UID hierarchy that contains the specified icon literal. The value of hierarchy_id was returned in a previous call to MrmOpenHierarchyPerDisplay. so like, you can't just make one up, bestie, it has to come from that earlier call πŸ‘‘
  • index β€” specifies the UIL name of the bitmap literal to fetch. this is the name you're looking for in the hierarchy πŸ“
  • screen β€” specifies the screen used for the pixmap. The screen argument specifies a pointer to the Xlib structure Screen which contains the information about that screen and is linked to the Display structure. For more information on the Display and Screen structures, see the Xlib function XOpenDisplay and the associated screen information macros. ✨
  • display β€” specifies the display used for the pixmap. The display argument specifies the connection to the X server. For more information on the Display structure, see the Xlib function XOpenDisplay. that's your link to the server, periodt πŸ’œ
  • pixmap_return β€” 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 calling XmDestroyPixmap. > so heads up bestie, this function hands you memory and then it's your job to deal with it. don't be the girl who forgets to call XmDestroyPixmap, it's giving leak 😭
  • width β€” specifies a pointer to the width of the pixmap. πŸ“
  • height β€” specifies a pointer to the height of the pixmap. πŸ“

πŸ”₯ RETURN πŸ”₯

This function returns one of the following status return constants:

  • MrmSUCCESS β€” The function executed successfully. slay! πŸŽ‰
  • MrmBAD_HIERARCHY β€” The hierarchy ID was invalid. πŸ’€
  • MrmNOT_FOUND β€” The bitmap literal was not found in the hierarchy. she's not here πŸ™ˆ
  • MrmWRONG_TYPE β€” The caller tried to fetch a literal of a type not supported by this function. wrong vibe check 🚫
  • MrmFAILURE β€” The function failed. it happens, bestie 😭

MrmFetchIconLiteral(3), MrmFetchLiteral(3), and XOpenDisplay(3). go read those next, iykyk 🫢


and that's the whole page, bestie πŸ’– this was MrmFetchBitmapLiteral, a library call, straight out of the Mrm manual β€” mwah, iconic, no notes βœ¨πŸŽ€