1 /* 2 Copyright (C) 2003 GraphicsMagick Group 3 Copyright (C) 2002 ImageMagick Studio 4 Copyright 1991-1999 E. I. du Pont de Nemours and Company 5 6 This program is covered by multiple licenses, which are described in 7 Copyright.txt. You should have received a copy of Copyright.txt with this 8 package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. 9 10 GraphicsMagick X11 compatibility methods. 11 */ 12 #ifndef _MAGICK_PRER5ICCCM_H 13 #define _MAGICK_PRER5ICCCM_H 14 15 #if defined(__cplusplus) || defined(c_plusplus) 16 extern "C" { 17 #endif 18 19 #if defined(PRE_R6_ICCCM) 20 /* 21 Compatability defines for pre X11R6 ICCCM. 22 */ 23 #define XK_KP_Home 0xFF95 24 #define XK_KP_Left 0xFF96 25 #define XK_KP_Up 0xFF97 26 #define XK_KP_Right 0xFF98 27 #define XK_KP_Down 0xFF99 28 #define XK_KP_Prior 0xFF9A 29 #define XK_KP_Page_Up 0xFF9A 30 #define XK_KP_Next 0xFF9B 31 #define XK_KP_Page_Down 0xFF9B 32 #define XK_KP_End 0xFF9C 33 #define XK_KP_Delete 0xFF9F 34 35 extern MagickExport Status 36 XInitImage(XImage *ximage); 37 #endif 38 39 #if defined(PRE_R5_ICCCM) 40 /* 41 Compatability defines for pre X11R5 ICCCM. 42 */ 43 extern MagickExport XrmDatabase 44 XrmGetDatabase(); 45 #endif 46 47 #if defined(PRE_R4_ICCCM) 48 /* 49 Compatability defines for pre X11R4 ICCCM. 50 */ 51 52 #define WithdrawnState 0 53 #define XInductColormap(display,colormap) XInstallColormap(display,colormap) 54 #define XUninductColormap(display,colormap) XUninstallColormap(display,colormap) 55 56 typedef struct _XTextProperty 57 { 58 unsigned char 59 *value; 60 61 Atom 62 encoding; 63 64 int 65 format; 66 67 unsigned long 68 nitems; 69 } XTextProperty; 70 71 /* 72 Pre R4 ICCCM compatibility routines. 73 */ 74 char 75 *XResourceManagerString(); 76 77 extern MagickExport int 78 XWMGeometry(); 79 80 extern MagickExport Status 81 XGetRGBColormaps(), 82 XGetWMName(), 83 XReconfigureWMWindow(), 84 XSetWMProtocols(), 85 XWithdrawWindow(); 86 87 extern MagickExport XClassHint 88 *XAllocClassHint(); 89 90 extern MagickExport XIconSize 91 *XAllocIconSize(); 92 93 extern MagickExport XSizeHints 94 *XAllocSizeHints(); 95 96 extern MagickExport XStandardColormap 97 *XAllocStandardColormap(); 98 99 extern MagickExport XWMHints 100 *XAllocWMHints(); 101 102 extern MagickExport VisualID 103 XVisualIDFromVisual(); 104 105 extern MagickExport void 106 XrmDestroyDatabase(), 107 XSetWMIconName(), 108 XSetWMName(), 109 XSetWMProperties(); 110 #else 111 #define XInductColormap(display,colormap) 112 #define XUninductColormap(display,colormap) 113 #endif 114 115 #if defined(__cplusplus) || defined(c_plusplus) 116 } 117 #endif 118 119 #endif 120 121 /* 122 * Local Variables: 123 * mode: c 124 * c-basic-offset: 2 125 * fill-column: 78 126 * End: 127 */ 128