]> granicus.if.org Git - imagemagick/blob - MagickCore/PreRvIcccm.h
(no commit message)
[imagemagick] / MagickCore / PreRvIcccm.h
1 /*
2   Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4   
5   You may not use this file except in compliance with the License.
6   obtain a copy of the License at
7   
8     http://www.imagemagick.org/script/license.php
9   
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15
16   MagickCore X11 compatibility methods.
17 */
18 #ifndef _MAGICKCORE_PRER5ICCCM_H
19 #define _MAGICKCORE_PRER5ICCCM_H
20
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24
25 #if defined(PRE_R6_ICCCM)
26 /*
27   Compatability defines for pre X11R6 ICCCM.
28 */
29 #define XK_KP_Home              0xFF95
30 #define XK_KP_Left              0xFF96
31 #define XK_KP_Up                0xFF97
32 #define XK_KP_Right             0xFF98
33 #define XK_KP_Down              0xFF99
34 #define XK_KP_Prior             0xFF9A
35 #define XK_KP_Page_Up           0xFF9A
36 #define XK_KP_Next              0xFF9B
37 #define XK_KP_Page_Down         0xFF9B
38 #define XK_KP_End               0xFF9C
39 #define XK_KP_Delete            0xFF9F
40
41 extern MagickExport Status
42   XInitImage(XImage *ximage);
43 #endif
44
45 #if defined(PRE_R5_ICCCM)
46 extern MagickExport XrmDatabase
47   XrmGetDatabase();
48 #endif
49
50 #if defined(PRE_R4_ICCCM)
51 #if defined(vms)
52 #define XMaxRequestSize(display)  16384
53 #endif
54
55 #define WithdrawnState  0
56
57 typedef struct _XTextProperty
58 {
59   unsigned char
60     *value;
61
62   Atom
63     encoding;
64
65   int
66     format;
67
68   size_t
69     nitems;
70 } XTextProperty;
71
72 char
73   *XResourceManagerString();
74
75 extern MagickExport int
76   XWMGeometry();
77
78 extern MagickExport Status
79   XGetRGBColormaps(),
80   XGetWMName(),
81   XReconfigureWMWindow(),
82   XSetWMProtocols(),
83   XWithdrawWindow();
84
85 extern MagickExport XClassHint
86   *XAllocClassHint();
87
88 extern MagickExport XIconSize
89   *XAllocIconSize();
90
91 extern MagickExport XSizeHints
92   *XAllocSizeHints();
93
94 extern MagickExport XStandardColormap
95   *XAllocStandardColormap();
96
97 extern MagickExport XWMHints
98   *XAllocWMHints();
99
100 extern MagickExport VisualID
101   XVisualIDFromVisual();
102
103 extern MagickExport void
104   XrmDestroyDatabase(),
105   XSetWMIconName(),
106   XSetWMName(),
107   XSetWMProperties();
108 #else
109 #endif
110
111 #if defined(__cplusplus) || defined(c_plusplus)
112 }
113 #endif
114
115 #endif