XmGetSizedPixmap(3)

πŸ“¦ version 2.5.2, in alpine 3.24

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 the Screen for which to create the Pixmap. It's giving "where are we doing this, bestie?" 🌸
  • image_name β€” see XmGetPixmapByDepth for the description. The deets live over there. πŸ¦‹
  • foreground β€” see XmGetPixmapByDepth for the description. Same energy. πŸ’œ
  • background β€” see XmGetPixmapByDepth for the description. Same energy again. ✨
  • depth β€” see XmGetPixmapByDepth for the description. Yep, that one. πŸ’…
  • width β€” desired Pixmap width. The width you want. Literally. πŸ’–
  • height β€” desired Pixmap height. 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