MRMFETCHBITMAPLITERAL(3)
π 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 ofhierarchy_idwas returned in a previous call toMrmOpenHierarchyPerDisplay. 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. Thescreenargument specifies a pointer to the Xlib structureScreenwhich contains the information about that screen and is linked to theDisplaystructure. For more information on theDisplayandScreenstructures, see the Xlib functionXOpenDisplayand the associated screen information macros. β¨displayβ specifies the display used for the pixmap. Thedisplayargument specifies the connection to the X server. For more information on theDisplaystructure, see the Xlib functionXOpenDisplay. 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 callingXmDestroyPixmap. > 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 callXmDestroyPixmap, 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 π
π RELATED π
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 β¨π
π¦ 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