DOKK / manpages / debian 11 / libmotif-dev / XmDestroyPixmap.3.en
XmDestroyPixmap(3) Library Functions Manual XmDestroyPixmap(3)

XmDestroyPixmap — A pixmap caching function that removes a pixmap from the pixmap cache "XmDestroyPixmap" "pixmaps"

#include <Xm/Xm.h>
Boolean XmDestroyPixmap(
Screen * screen,
Pixmap pixmap);

XmDestroyPixmap removes pixmaps that are no longer used. Pixmaps are completely freed only when there is no further reference to them.

Specifies the display screen for which the pixmap was requested
Specifies the pixmap to be destroyed

Returns True when successful; returns False if there is no matching screen and pixmap in the pixmap cache.

XmInstallImage(3), XmUninstallImage(3), and XmGetPixmap(3).