XMGETCOLORS(3)
β¨ 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 isNULL, no value is allocated or returned for this color. so if you passNULLhere, 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 isNULL, no value is allocated or returned for this color. πbottom_shadowβ specifies a pointer to the returned bottom shadow pixel value. if this argument isNULL, no value is allocated or returned for this color. πselectβ specifies a pointer to the returned select pixel value. if this argument isNULL, 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. π
π₯ RELATED π₯
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. πβ¨π
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- 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