cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
cristy | 7e41fe8 | 2010-12-04 23:12:08 +0000 | [diff] [blame] | 2 | Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 window methods. |
| 17 | */ |
| 18 | #ifndef _MAGICKCORE_XWINDOW_H |
| 19 | #define _MAGICKCORE_XWINDOW_H |
| 20 | |
| 21 | #if defined(__cplusplus) || defined(c_plusplus) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
cristy | bcbda3f | 2011-09-03 13:01:22 +0000 | [diff] [blame] | 25 | #if defined(MAGICKCORE_X11_DELEGATE) |
| 26 | #include <X11/Xos.h> |
| 27 | #include <X11/Xlib.h> |
| 28 | #include <X11/Xresource.h> |
| 29 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30 | typedef struct _XImportInfo |
cristy | bcbda3f | 2011-09-03 13:01:22 +0000 | [diff] [blame] | 31 | XImportInfo; |
| 32 | |
| 33 | typedef struct _XResourceInfo |
| 34 | XResourceInfo; |
| 35 | |
| 36 | extern MagickExport char |
| 37 | *XGetResourceClass(XrmDatabase,const char *,const char *,char *), |
| 38 | *XGetResourceInstance(XrmDatabase,const char *,const char *,const char *), |
| 39 | *XGetScreenDensity(Display *); |
| 40 | |
| 41 | extern MagickExport int |
| 42 | XError(Display *,XErrorEvent *); |
| 43 | |
| 44 | extern MagickExport XrmDatabase |
| 45 | XGetResourceDatabase(Display *,const char *); |
| 46 | |
| 47 | extern MagickExport void |
| 48 | XGetResourceInfo(const ImageInfo *,XrmDatabase,const char *,XResourceInfo *), |
| 49 | XRetainWindowColors(Display *,const Window); |
| 50 | #endif |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 51 | |
| 52 | extern MagickExport Image |
| 53 | *XImportImage(const ImageInfo *,XImportInfo *); |
| 54 | |
cristy | bcbda3f | 2011-09-03 13:01:22 +0000 | [diff] [blame] | 55 | extern MagickExport MagickBooleanType |
| 56 | XRemoteCommand(Display *,const char *,const char *); |
| 57 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 58 | extern MagickExport void |
cristy | bcbda3f | 2011-09-03 13:01:22 +0000 | [diff] [blame] | 59 | DestroyXResources(void), |
| 60 | XDestroyResourceInfo(XResourceInfo *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 61 | XGetImportInfo(XImportInfo *); |
| 62 | |
| 63 | #if defined(__cplusplus) || defined(c_plusplus) |
| 64 | } |
| 65 | #endif |
| 66 | |
| 67 | #endif |