XMGETCOLORS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ XmGetColors ✨

okay bestie, so this one lives in the library call section of the manual β€” it's XmGetColors, and it's the little glow-up fairy that cooks up your foreground, select, and shadow colors for you. πŸ’…


🌸 NAME 🌸

XmGetColors β€” a function that generates foreground, select, and shadow colors. no cap, that's literally its whole job. 🎨✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Xm/Xm.h>
void XmGetColors(
Screen * screen,
Colormap colormap,
Pixel background,
Pixel * foreground,
Pixel * top_shadow,
Pixel * bottom_shadow,
Pixel * select);

πŸ’– DESCRIPTION πŸ’–

so here's the tea: XmGetColors takes a screen, a colormap, and a background pixel, and returns pixel values for foreground, select, and shadow colors. it's giving personal color stylist, honestly. πŸ‘‘

  • screen β€” specifies the screen for which these colors should be allocated. which screen are we doing this glow-up on, bestie? πŸ–₯️
  • colormap β€” specifies the colormap from which these colors should be allocated. this is the palette closet we're raiding. πŸŽ€
  • background β€” specifies the background on which the colors should be based. everything else is gonna match this vibe. 🌈
  • foreground β€” specifies a pointer to the returned foreground pixel value. ⚠️ if this argument is NULL, no value is allocated or returned for this color. so if you pass NULL here, you simply don't get one β€” that's the deal, fr fr.
  • top_shadow β€” specifies a pointer to the returned top shadow pixel value. if this argument is NULL, no value is allocated or returned for this color. πŸ™ˆ
  • bottom_shadow β€” specifies a pointer to the returned bottom shadow pixel value. if this argument is NULL, no value is allocated or returned for this color. πŸ’€
  • select β€” specifies a pointer to the returned select pixel value. if this argument is NULL, no value is allocated or returned for this color. 🫢
lowkey the main character move here is that every single one of those four output pointers is optional β€” pass NULL for any of them and that color just doesn't get allocated or returned. no drama, no error, it just doesn't happen. πŸ’…

those three are the friend group, go say hi. πŸ«‚


okay that's the whole page, bestie β€” you ate. this was XmGetColors from the library call manual section, and the footer's just the same little signature on repeat, so consider this your cute sign-off. stay colorful, stay iconic, periodt. πŸ’œβœ¨πŸŽ€