blob: 265a06c08e92c14579a0fe066206384adacfa7f9 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy7e41fe82010-12-04 23:12:08 +00002 Copyright 1999-2011 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 window methods.
17*/
18#ifndef _MAGICKCORE_XWINDOW_H
19#define _MAGICKCORE_XWINDOW_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
cristybcbda3f2011-09-03 13:01:22 +000025#if defined(MAGICKCORE_X11_DELEGATE)
26#include <X11/Xos.h>
27#include <X11/Xlib.h>
28#include <X11/Xresource.h>
29
cristy3ed852e2009-09-05 21:47:34 +000030typedef struct _XImportInfo
cristybcbda3f2011-09-03 13:01:22 +000031 XImportInfo;
32
33typedef struct _XResourceInfo
34 XResourceInfo;
35
36extern MagickExport char
37 *XGetResourceClass(XrmDatabase,const char *,const char *,char *),
38 *XGetResourceInstance(XrmDatabase,const char *,const char *,const char *),
39 *XGetScreenDensity(Display *);
40
41extern MagickExport int
42 XError(Display *,XErrorEvent *);
43
44extern MagickExport XrmDatabase
45 XGetResourceDatabase(Display *,const char *);
46
47extern MagickExport void
48 XGetResourceInfo(const ImageInfo *,XrmDatabase,const char *,XResourceInfo *),
49 XRetainWindowColors(Display *,const Window);
50#endif
cristy3ed852e2009-09-05 21:47:34 +000051
52extern MagickExport Image
53 *XImportImage(const ImageInfo *,XImportInfo *);
54
cristybcbda3f2011-09-03 13:01:22 +000055extern MagickExport MagickBooleanType
56 XRemoteCommand(Display *,const char *,const char *);
57
cristy3ed852e2009-09-05 21:47:34 +000058extern MagickExport void
cristybcbda3f2011-09-03 13:01:22 +000059 DestroyXResources(void),
60 XDestroyResourceInfo(XResourceInfo *),
cristy3ed852e2009-09-05 21:47:34 +000061 XGetImportInfo(XImportInfo *);
62
63#if defined(__cplusplus) || defined(c_plusplus)
64}
65#endif
66
67#endif