1 /* 2 * Motif Tools Library, Version 3.1 3 * $Id: Pixmap.h,v 1.1.1.1 2001/02/10 13:50:11 motiftools Exp $ 4 * 5 * Written by David Flanagan. 6 * Copyright (c) 1992-2001 by David Flanagan. 7 * All Rights Reserved. See the file COPYRIGHT for details. 8 * This is open source software. See the file LICENSE for details. 9 * There is no warranty for this software. See NO_WARRANTY for details. 10 * 11 * $Log: Pixmap.h,v $ 12 * Revision 1.1.1.1 2001/02/10 13:50:11 motiftools 13 * Initial import of Xmt310 to CVS 14 * 15 * 16 */ 17 18 #ifndef _XmtPixmap_h 19 #define _XmtPixmap_h 20 21 #include <Xmt/Xpm.h> 22 #include <Xmt/Color.h> 23 24 /* 25 * The names of special branches of the resource database 26 * that XmtGetBitmap() and XmtGetPixmap() will search for 27 * bitmap and pixmap definitions. 28 */ 29 #define XmtNxmtPixmaps "_Pixmaps_" 30 #define XmtNxmtBitmaps "_Bitmaps_" 31 32 _XFUNCPROTOBEGIN 33 #if NeedFunctionPrototypes 34 extern void XmtRegisterXbmData(StringConst, char *, char *, int, int, int,int); 35 extern void XmtRegisterImage(StringConst, XmtImage *); 36 extern Pixmap XmtLookupBitmap(Widget, StringConst); 37 extern Pixmap XmtLookupPixmap(Widget, Visual *, Colormap, unsigned int, 38 XmtColorTable, StringConst); 39 extern Pixmap XmtLookupSimplePixmap(Widget, XmtColorTable, StringConst); 40 extern Pixmap XmtLookupWidgetPixmap(Widget, StringConst); 41 extern Pixmap XmtLookupBitmask(Widget, StringConst); 42 extern void XmtReleasePixmap(Widget, Pixmap); 43 extern Pixmap XmtGetBitmap(Widget, StringConst); 44 extern Pixmap XmtGetPixmap(Widget, XmtColorTable, StringConst); 45 extern void XmtRegisterImprovedIcons(Widget, XmtColorTable); 46 #else 47 extern void XmtRegisterXbmData(); 48 extern void XmtRegisterImage(); 49 extern Pixmap XmtLookupBitmap(); 50 extern Pixmap XmtLookupPixmap(); 51 extern Pixmap XmtLookupSimplePixmap(); 52 extern Pixmap XmtLookupWidgetPixmap(); 53 extern Pixmap XmtLookupBitmask(); 54 extern void XmtReleasePixmap(); 55 extern Pixmap XmtGetBitmap(); 56 extern Pixmap XmtGetPixmap(); 57 extern void XmtRegisterImprovedIcons(); 58 #endif 59 _XFUNCPROTOEND 60 61 #endif 62