Files
mcde/include/Mcde/Image.h
T
lotherkandClaude Sonnet 5.5 d53ea094e7 licence: CNCL for what Makronix wrote itself
LICENSE at the root; the 103 files new in ext/src/mcde (none was in the CDE
import) carry the CNCL line instead of the LGPL notice.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:48:02 +00:00

34 lines
963 B
C

/*
* Mcde/Image.h -- MCDE: a picture file as a pixmap (libDtSvc,
* DtUtil2/McdeImage.c)
*
* License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree.
*
* XmGetPixmap(3) for every format Motif reads, except PNG, which libpng
* reads here: Motif 2.3.8 draws a PNG without alpha as its blue channel
* only (lib/Xm/Png.c; docs/reference/motif-png.txt in the Makronix tree).
*/
#ifndef _Mcde_Image_h
#define _Mcde_Image_h
#include <X11/Intrinsic.h>
#ifdef __cplusplus
extern "C" {
#endif
/* PATH as a pixmap of the screen's depth, transparency over BG; FG and BG
* colour a bitmap as XmGetPixmap does. XmUNSPECIFIED_PIXMAP when the file
* cannot be read. */
Pixmap McdeImageGetPixmap(Screen *screen, const char *path, Pixel fg,
Pixel bg);
/* gives back a pixmap of McdeImageGetPixmap, from Motif's cache or not */
void McdeImageFreePixmap(Screen *screen, Pixmap pixmap);
#ifdef __cplusplus
}
#endif
#endif /* _Mcde_Image_h */