#include <X11/Xos.h>#include <X11/Xlib.h>#include <X11/Xatom.h>#include <X11/cursorfont.h>#include <X11/keysym.h>#include <X11/Xresource.h>#include <X11/Xutil.h>#include "magick/exception.h"#include "magick/geometry.h"#include "magick/quantize.h"

Go to the source code of this file.
Data Structures | |
| struct | _XDrawInfo |
| struct | _XAnnotateInfo |
| struct | _XPixelInfo |
| struct | _XResourceInfo |
| struct | _XWindowInfo |
| struct | _XWindows |
Defines | |
| #define | klass class |
| #define | PRE_R5_ICCCM |
| #define | PRE_R4_ICCCM |
| #define | MaxIconSize 96 |
| #define | MaxNumberPens 11 |
| #define | MaxNumberFonts 11 |
| #define | MaxXWindows 12 |
| #define | ThrowXWindowException(severity, tag, context) |
| #define | ThrowXWindowFatalException(severity, tag, context) |
Typedefs | |
| typedef struct _XDrawInfo | XDrawInfo |
| typedef struct _XAnnotateInfo | XAnnotateInfo |
| typedef struct _XPixelInfo | XPixelInfo |
| typedef struct _XResourceInfo | XResourceInfo |
| typedef struct _XWindowInfo | XWindowInfo |
| typedef struct _XWindows | XWindows |
Enumerations | |
| enum | AnnotationStencil { ForegroundStencil, BackgroundStencil, OpaqueStencil, TransparentStencil } |
| enum | ElementType { UndefinedElement, PointElement, LineElement, RectangleElement, FillRectangleElement, CircleElement, FillCircleElement, EllipseElement, FillEllipseElement, PolygonElement, FillPolygonElement, ColorElement, MatteElement, TextElement, ImageElement } |
| enum | XColormapType { UndefinedColormap, PrivateColormap, SharedColormap } |
| enum | XState { DefaultState = 0x0000, EscapeState = 0x0001, ExitState = 0x0002, FormerImageState = 0x0004, ModifierState = 0x0008, MontageImageState = 0x0010, NextImageState = 0x0020, RetainColorsState = 0x0040, SuspendTime = 50, UpdateConfigurationState = 0x0080, UpdateRegionState = 0x0100 } |
Functions | |
| MagickExport char * | XGetResourceClass (XrmDatabase, const char *, const char *, char *) |
| MagickExport char ** | XGetResourceInstance (XrmDatabase, const char *, const char *, const char *) |
| MagickExport char *** | XGetScreenDensity (Display *) |
| MagickExport Cursor | XMakeCursor (Display *, Window, Colormap, char *, char *) |
| MagickExport int | XCheckDefineCursor (Display *, Window, Cursor) |
| MagickExport int | XError (Display *, XErrorEvent *) |
| MagickExport MagickBooleanType | XAnnotateImage (Display *, const XPixelInfo *, XAnnotateInfo *, Image *) |
| MagickExport MagickBooleanType | XComponentGenesis (void) |
| MagickExport MagickBooleanType | XDrawImage (Display *, const XPixelInfo *, XDrawInfo *, Image *) |
| MagickExport MagickBooleanType | XGetWindowColor (Display *, XWindows *, char *) |
| MagickExport MagickBooleanType | XMagickProgressMonitor (const char *, const MagickOffsetType, const MagickSizeType, void *) |
| MagickExport MagickBooleanType | XMakeImage (Display *, const XResourceInfo *, XWindowInfo *, Image *, unsigned int, unsigned int) |
| MagickExport MagickBooleanType | XQueryColorDatabase (const char *, XColor *) |
| MagickExport MagickBooleanType | XRemoteCommand (Display *, const char *, const char *) |
| MagickExport void | DestroyXResources (void) |
| MagickExport void | XBestIconSize (Display *, XWindowInfo *, Image *) |
| MagickExport void | XBestPixel (Display *, const Colormap, XColor *, unsigned int, XColor *) |
| MagickExport void | XCheckRefreshWindows (Display *, XWindows *) |
| MagickExport void | XClientMessage (Display *, const Window, const Atom, const Atom, const Time) |
| MagickExport void | XComponentTerminus (void) |
| MagickExport void | XConfigureImageColormap (Display *, XResourceInfo *, XWindows *, Image *) |
| MagickExport void | XConstrainWindowPosition (Display *, XWindowInfo *) |
| MagickExport void | XDelay (Display *, const unsigned long) |
| MagickExport void | XDisplayImageInfo (Display *, const XResourceInfo *, XWindows *, Image *, Image *) |
| MagickExport void | XDestroyResourceInfo (XResourceInfo *) |
| MagickExport void | XDestroyWindowColors (Display *, Window) |
| MagickExport void | XFreeResources (Display *, XVisualInfo *, XStandardColormap *, XPixelInfo *, XFontStruct *, XResourceInfo *, XWindowInfo *) |
| MagickExport void | XFreeStandardColormap (Display *, const XVisualInfo *, XStandardColormap *, XPixelInfo *) |
| MagickExport void | XHighlightEllipse (Display *, Window, GC, const RectangleInfo *) |
| MagickExport void | XHighlightLine (Display *, Window, GC, const XSegment *) |
| MagickExport void | XHighlightRectangle (Display *, Window, GC, const RectangleInfo *) |
| MagickExport void | XGetAnnotateInfo (XAnnotateInfo *) |
| MagickExport void | XGetPixelPacket (Display *, const XVisualInfo *, const XStandardColormap *, const XResourceInfo *, Image *, XPixelInfo *) |
| MagickExport void | XGetMapInfo (const XVisualInfo *, const Colormap, XStandardColormap *) |
| MagickExport void | XGetResourceInfo (const ImageInfo *, XrmDatabase, const char *, XResourceInfo *) |
| MagickExport void | XGetWindowInfo (Display *, XVisualInfo *, XStandardColormap *, XPixelInfo *, XFontStruct *, XResourceInfo *, XWindowInfo *) |
| MagickExport void | XMakeMagnifyImage (Display *, XWindows *) |
| MagickExport void | XMakeStandardColormap (Display *, XVisualInfo *, XResourceInfo *, Image *, XStandardColormap *, XPixelInfo *) |
| MagickExport void | XMakeWindow (Display *, Window, char **, int, XClassHint *, XWMHints *, XWindowInfo *) |
| MagickExport void | XQueryPosition (Display *, const Window, int *, int *) |
| MagickExport void | XRefreshWindow (Display *, const XWindowInfo *, const XEvent *) |
| MagickExport void | XRetainWindowColors (Display *, const Window) |
| MagickExport void | XSetCursorState (Display *, XWindows *, const MagickStatusType) |
| MagickExport void | XUserPreferences (XResourceInfo *) |
| MagickExport void | XWarning (const ExceptionType, const char *, const char *) |
| MagickExport Window | XWindowByID (Display *, const Window, const unsigned long) |
| MagickExport Window | XWindowByName (Display *, const Window, const char *) |
| MagickExport Window | XWindowByProperty (Display *, const Window, const Atom) |
| MagickExport XFontStruct * | XBestFont (Display *, const XResourceInfo *, const MagickBooleanType) |
| MagickExport XrmDatabase | XGetResourceDatabase (Display *, const char *) |
| MagickExport XVisualInfo * | XBestVisualInfo (Display *, XStandardColormap *, XResourceInfo *) |
| MagickExport XWindows * | XInitializeWindows (Display *, XResourceInfo *) |
| MagickExport XWindows ** | XSetWindows (XWindows *) |
| static MagickRealType | XPixelIntensity (const XColor *pixel) |
| #define klass class |
Definition at line 41 of file xwindow-private.h.
| #define MaxIconSize 96 |
Definition at line 65 of file xwindow-private.h.
Referenced by XBestIconSize().
| #define MaxNumberFonts 11 |
Definition at line 67 of file xwindow-private.h.
| #define MaxNumberPens 11 |
Definition at line 66 of file xwindow-private.h.
Referenced by XGetPixelPacket(), and XMakeStandardColormap().
| #define MaxXWindows 12 |
Definition at line 68 of file xwindow-private.h.
Referenced by DestroyXResources().
| #define PRE_R4_ICCCM |
Definition at line 62 of file xwindow-private.h.
| #define PRE_R5_ICCCM |
Definition at line 56 of file xwindow-private.h.
| #define ThrowXWindowException | ( | severity, | |||
| tag, | |||||
| context | ) |
{ \
ExceptionInfo \
exception; \
\
GetExceptionInfo(&exception); \
(void) ThrowMagickException(&exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context, \
strerror(errno)); \
CatchException(&exception); \
(void) DestroyExceptionInfo(&exception); \
}
Definition at line 71 of file xwindow-private.h.
Referenced by XRemoteCommand().
| #define ThrowXWindowFatalException | ( | severity, | |||
| tag, | |||||
| context | ) |
{ \
ThrowXWindowException(severity,tag,context); \
_exit(1); \
}
Definition at line 83 of file xwindow-private.h.
Referenced by FontToList(), XBestFont(), XBestIconSize(), XBestPixel(), XBestVisualInfo(), XCommandWidget(), XDestroyWindowColors(), XDitherImage(), XGetPixelPacket(), XGetResourceInfo(), XGetWindowImage(), XImportImage(), XInitializeWindows(), XMakeCursor(), XMakeStandardColormap(), XMakeWindow(), XQueryColorDatabase(), XRetainWindowColors(), and XSelectWindow().
| typedef struct _XAnnotateInfo XAnnotateInfo |
| typedef struct _XDrawInfo XDrawInfo |
| typedef struct _XPixelInfo XPixelInfo |
| typedef struct _XResourceInfo XResourceInfo |
| typedef struct _XWindowInfo XWindowInfo |
| enum AnnotationStencil |
Definition at line 89 of file xwindow-private.h.
| enum ElementType |
Definition at line 97 of file xwindow-private.h.
| enum XColormapType |
Definition at line 116 of file xwindow-private.h.
| enum XState |
| DefaultState | |
| EscapeState | |
| ExitState | |
| FormerImageState | |
| ModifierState | |
| MontageImageState | |
| NextImageState | |
| RetainColorsState | |
| SuspendTime | |
| UpdateConfigurationState | |
| UpdateRegionState |
Definition at line 164 of file xwindow-private.h.
| MagickExport void DestroyXResources | ( | void | ) |
Referenced by XComponentTerminus().
| MagickExport MagickBooleanType XAnnotateImage | ( | Display * | , | |
| const XPixelInfo * | , | |||
| XAnnotateInfo * | , | |||
| Image * | ||||
| ) |
| MagickExport XFontStruct* XBestFont | ( | Display * | , | |
| const XResourceInfo * | , | |||
| const | MagickBooleanType | |||
| ) |
Definition at line 764 of file xwindow.c.
References DestroyString(), _XResourceInfo::font, FontToList(), MagickFalse, RelinquishMagickMemory(), _XResourceInfo::text_font, ThrowXWindowFatalException, XDefaultScreen, XDisplayHeight, XLoadQueryFont, and XServerError.
Referenced by XTextViewWidget().
| MagickExport void XBestIconSize | ( | Display * | , | |
| XWindowInfo * | , | |||
| Image * | ||||
| ) |
| MagickExport void XBestPixel | ( | Display * | , | |
| const | Colormap, | |||
| XColor * | , | |||
| unsigned int | , | |||
| XColor * | ||||
| ) |
Referenced by XColorBrowserWidget(), and XMakeStandardColormap().
| MagickExport XVisualInfo* XBestVisualInfo | ( | Display * | , | |
| XStandardColormap * | , | |||
| XResourceInfo * | ||||
| ) |
Definition at line 1137 of file xwindow.c.
References _XResourceInfo::color_recovery, _XResourceInfo::colors, FormatMagickString(), GetMagickModule, _XResourceInfo::immutable, LocaleCompare(), LocaleUpper(), LogMagickEvent(), MagickFalse, MagickTrue, _XResourceInfo::map_type, MaxStandardColormaps, MaxTextExtent, ThrowXWindowFatalException, TraceEvent, _XResourceInfo::visual_type, XDefaultDepth, XDefaultScreen, XDefaultVisual, XFree, XGetRGBColormaps, XGetVisualInfo, XInternAtom, XRootWindow, XServerError, XServerWarning, XVisualClassName(), XVisualColormapSize, and XVisualIDFromVisual.
Referenced by XInitializeWindows().
| MagickExport int XCheckDefineCursor | ( | Display * | , | |
| Window | , | |||
| Cursor | ||||
| ) |
Referenced by XFileBrowserWidget(), XMakeImage(), XMakePixmap(), XMenuWidget(), and XSetCursorState().
| MagickExport void XCheckRefreshWindows | ( | Display * | , | |
| XWindows * | ||||
| ) |
| MagickExport void XClientMessage | ( | Display * | , | |
| const | Window, | |||
| const | Atom, | |||
| const | Atom, | |||
| const | Time | |||
| ) |
Referenced by XConfigureImageColormap().
| MagickExport MagickBooleanType XComponentGenesis | ( | void | ) |
Referenced by MagickCoreGenesis().
| MagickExport void XComponentTerminus | ( | void | ) |
Referenced by MagickCoreTerminus().
| MagickExport void XConfigureImageColormap | ( | Display * | , | |
| XResourceInfo * | , | |||
| XWindows * | , | |||
| Image * | ||||
| ) |
| MagickExport void XConstrainWindowPosition | ( | Display * | , | |
| XWindowInfo * | ||||
| ) |
| MagickExport void XDelay | ( | Display * | , | |
| const unsigned long | ||||
| ) |
| MagickExport void XDestroyResourceInfo | ( | XResourceInfo * | ) |
| MagickExport void XDestroyWindowColors | ( | Display * | , | |
| Window | ||||
| ) |
| MagickExport void XDisplayImageInfo | ( | Display * | , | |
| const XResourceInfo * | , | |||
| XWindows * | , | |||
| Image * | , | |||
| Image * | ||||
| ) |
| MagickExport MagickBooleanType XDrawImage | ( | Display * | , | |
| const XPixelInfo * | , | |||
| XDrawInfo * | , | |||
| Image * | ||||
| ) |
| MagickExport int XError | ( | Display * | , | |
| XErrorEvent * | ||||
| ) |
Definition at line 2649 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, TraceEvent, and xerror_alert.
Referenced by XImportImage().
| MagickExport void XFreeResources | ( | Display * | , | |
| XVisualInfo * | , | |||
| XStandardColormap * | , | |||
| XPixelInfo * | , | |||
| XFontStruct * | , | |||
| XResourceInfo * | , | |||
| XWindowInfo * | ||||
| ) |
| MagickExport void XFreeStandardColormap | ( | Display * | , | |
| const XVisualInfo * | , | |||
| XStandardColormap * | , | |||
| XPixelInfo * | ||||
| ) |
Referenced by XFreeResources(), and XMakeStandardColormap().
| MagickExport void XGetAnnotateInfo | ( | XAnnotateInfo * | ) |
| MagickExport void XGetMapInfo | ( | const XVisualInfo * | , | |
| const | Colormap, | |||
| XStandardColormap * | ||||
| ) |
Referenced by XMakeStandardColormap().
| MagickExport void XGetPixelPacket | ( | Display * | , | |
| const XVisualInfo * | , | |||
| const XStandardColormap * | , | |||
| const XResourceInfo * | , | |||
| Image * | , | |||
| XPixelInfo * | ||||
| ) |
Referenced by XMakeStandardColormap().
| MagickExport char* XGetResourceClass | ( | XrmDatabase | , | |
| const char * | , | |||
| const char * | , | |||
| char * | ||||
| ) |
Referenced by XGetResourceInfo().
| MagickExport XrmDatabase XGetResourceDatabase | ( | Display * | , | |
| const char * | ||||
| ) |
Definition at line 3333 of file xwindow.c.
References ExpandFilename(), FormatMagickString(), MagickFalse, MaxTextExtent, X11_PREFERENCES_PATH, XGetDefault, XResourceManagerString, XrmCombineDatabase, XrmCombineFileDatabase, XrmGetDatabase, XrmGetStringDatabase, and XrmInitialize.
| MagickExport void XGetResourceInfo | ( | const ImageInfo * | , | |
| XrmDatabase | , | |||
| const char * | , | |||
| XResourceInfo * | ||||
| ) |
| MagickExport char* * XGetResourceInstance | ( | XrmDatabase | , | |
| const char * | , | |||
| const char * | , | |||
| const char * | ||||
| ) |
Referenced by XGetResourceInfo().
| MagickExport char* * * XGetScreenDensity | ( | Display * | ) |
Definition at line 3690 of file xwindow.c.
References FormatMagickString(), GetPageGeometry(), MaxTextExtent, and XDefaultScreen.
| MagickExport MagickBooleanType XGetWindowColor | ( | Display * | , | |
| XWindows * | , | |||
| char * | ||||
| ) |
Referenced by XColorBrowserWidget().
| MagickExport void XGetWindowInfo | ( | Display * | , | |
| XVisualInfo * | , | |||
| XStandardColormap * | , | |||
| XPixelInfo * | , | |||
| XFontStruct * | , | |||
| XResourceInfo * | , | |||
| XWindowInfo * | ||||
| ) |
| MagickExport void XHighlightEllipse | ( | Display * | , | |
| Window | , | |||
| GC | , | |||
| const RectangleInfo * | ||||
| ) |
| MagickExport void XHighlightLine | ( | Display * | , | |
| Window | , | |||
| GC | , | |||
| const XSegment * | ||||
| ) |
| MagickExport void XHighlightRectangle | ( | Display * | , | |
| Window | , | |||
| GC | , | |||
| const RectangleInfo * | ||||
| ) |
| MagickExport XWindows* XInitializeWindows | ( | Display * | , | |
| XResourceInfo * | ||||
| ) |
| MagickExport MagickBooleanType XMagickProgressMonitor | ( | const char * | , | |
| const | MagickOffsetType, | |||
| const | MagickSizeType, | |||
| void * | ||||
| ) |
Referenced by XGetResourceInfo().
| MagickExport Cursor XMakeCursor | ( | Display * | , | |
| Window | , | |||
| Colormap | , | |||
| char * | , | |||
| char * | ||||
| ) |
Definition at line 5290 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), scope_height, scope_width, scope_x_hot, scope_y_hot, ThrowXWindowFatalException, TraceEvent, XCreateBitmapFromData, XCreatePixmapCursor, XFreePixmap, XParseColor, and XServerError.
Referenced by XSelectWindow().
| MagickExport MagickBooleanType XMakeImage | ( | Display * | , | |
| const XResourceInfo * | , | |||
| XWindowInfo * | , | |||
| Image * | , | |||
| unsigned int | , | |||
| unsigned int | ||||
| ) |
| MagickExport void XMakeMagnifyImage | ( | Display * | , | |
| XWindows * | ||||
| ) |
Referenced by XScreenEvent().
| MagickExport void XMakeStandardColormap | ( | Display * | , | |
| XVisualInfo * | , | |||
| XResourceInfo * | , | |||
| Image * | , | |||
| XStandardColormap * | , | |||
| XPixelInfo * | ||||
| ) |
Referenced by XConfigureImageColormap().
| MagickExport void XMakeWindow | ( | Display * | , | |
| Window | , | |||
| char ** | , | |||
| int | , | |||
| XClassHint * | , | |||
| XWMHints * | , | |||
| XWindowInfo * | ||||
| ) |
| static MagickRealType XPixelIntensity | ( | const XColor * | pixel | ) | [inline, static] |
Definition at line 587 of file xwindow-private.h.
Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), XMakeMagnifyImage(), XMakeStandardColormap(), and XSetTextColor().
| MagickExport MagickBooleanType XQueryColorDatabase | ( | const char * | , | |
| XColor * | ||||
| ) |
| MagickExport void XQueryPosition | ( | Display * | , | |
| const | Window, | |||
| int * | , | |||
| int * | ||||
| ) |
Referenced by XMenuWidget().
| MagickExport void XRefreshWindow | ( | Display * | , | |
| const XWindowInfo * | , | |||
| const XEvent * | ||||
| ) |
Referenced by XCheckRefreshWindows(), XMakeMagnifyImage(), XProgressMonitorWidget(), and XScreenEvent().
| MagickExport MagickBooleanType XRemoteCommand | ( | Display * | , | |
| const char * | , | |||
| const char * | ||||
| ) |
Definition at line 8813 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, ThrowXWindowException, TraceEvent, XChangeProperty, XDefaultScreen, XInternAtom, XOpenDisplay, XRootWindow, XServerError, XSync, XWindowByID(), XWindowByName(), and XWindowByProperty().
| MagickExport void XRetainWindowColors | ( | Display * | , | |
| const | Window | |||
| ) |
| MagickExport void XSetCursorState | ( | Display * | , | |
| XWindows * | , | |||
| const | MagickStatusType | |||
| ) |
Definition at line 9185 of file xwindow.c.
References RelinquishMagickMemory().
Referenced by DestroyXResources(), XMagickProgressMonitor(), and XWarning().
| MagickExport void XUserPreferences | ( | XResourceInfo * | ) |
Referenced by XPreferencesWidget().
| MagickExport void XWarning | ( | const | ExceptionType, | |
| const char * | , | |||
| const char * | ||||
| ) |
| MagickExport Window XWindowByID | ( | Display * | , | |
| const | Window, | |||
| const unsigned long | ||||
| ) |
Referenced by XImportImage(), XInitializeWindows(), XRemoteCommand(), and XWindowByID().
| MagickExport Window XWindowByName | ( | Display * | , | |
| const | Window, | |||
| const char * | ||||
| ) |
Referenced by XImportImage(), XInitializeWindows(), XRemoteCommand(), and XWindowByName().
| MagickExport Window XWindowByProperty | ( | Display * | , | |
| const | Window, | |||
| const | Atom | |||
| ) |
Definition at line 9549 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, TraceEvent, XFree, XGetWindowProperty, XQueryTree, and XWindowByProperty().
Referenced by XClientWindow(), XRemoteCommand(), and XWindowByProperty().
1.6.2-20100208