blob: b1caf7ee58d447c5fbbedfdf61d9e84a289406e8 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy45ef08f2012-12-07 13:13:34 +00002 Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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)
22extern "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
41extern MagickExport Status
42 XInitImage(XImage *ximage);
43#endif
44
45#if defined(PRE_R5_ICCCM)
46extern 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
57typedef struct _XTextProperty
58{
59 unsigned char
60 *value;
61
62 Atom
63 encoding;
64
65 int
66 format;
67
cristybb503372010-05-27 20:51:26 +000068 size_t
cristy3ed852e2009-09-05 21:47:34 +000069 nitems;
70} XTextProperty;
71
72char
73 *XResourceManagerString();
74
75extern MagickExport int
76 XWMGeometry();
77
78extern MagickExport Status
79 XGetRGBColormaps(),
80 XGetWMName(),
81 XReconfigureWMWindow(),
82 XSetWMProtocols(),
83 XWithdrawWindow();
84
85extern MagickExport XClassHint
86 *XAllocClassHint();
87
88extern MagickExport XIconSize
89 *XAllocIconSize();
90
91extern MagickExport XSizeHints
92 *XAllocSizeHints();
93
94extern MagickExport XStandardColormap
95 *XAllocStandardColormap();
96
97extern MagickExport XWMHints
98 *XAllocWMHints();
99
100extern MagickExport VisualID
101 XVisualIDFromVisual();
102
103extern 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