XmGetSizedPixmap(3)
okay bestie, this is XmGetSizedPixmap(3) from the Library Functions Manual β the function that loads an image by name and hands you back a Pixmap sized exactly how you asked. Obsessed. π
β¨
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
XtEnum XmGetSizedPixmap(Widget widget, String image_name,
Pixel foreground, Pixel background,
int depth, int width, int height);
π DESCRIPTION π
XmGetSizedPixmap loads the image specified by image_name and generates a Pixmap appropriate for the given depth, scaled to the given width and height. No cap. π
widgetβ the Widget used to determine theScreenfor which to create thePixmap. It's giving "where are we doing this, bestie?" πΈimage_nameβ seeXmGetPixmapByDepthfor the description. The deets live over there. π¦foregroundβ seeXmGetPixmapByDepthfor the description. Same energy. πbackgroundβ seeXmGetPixmapByDepthfor the description. Same energy again. β¨depthβ seeXmGetPixmapByDepthfor the description. Yep, that one. πwidthβ desiredPixmapwidth. The width you want. Literally. πheightβ desiredPixmapheight. The height you want. Periodt. π«Ά
π RETURN VALUE π
A Pixmap on success, NULL on error. It's giving "slay or nope" β and that's the whole tea. β
π
π ERRORS / WARNINGS π
See XmGetPixmapByDepth(3). That's the whole section, bestie β no extra lore. π
π«Ά SEE ALSO π«Ά
π AUTHOR π
Tim Hentenaar <tim@hentenaar.com>
This page is living its best life as Motif 2.4.0, dated July 2025 β mwah πβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms