#include "magick/draw.h"
#include "magick/exception.h"
#include "magick/geometry.h"
#include "magick/nt-base-private.h"
#include "magick/quantize.h"
#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>
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 | 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 size_t) |
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 size_t) |
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) |
MagickPrivate MagickBooleanType | XRenderImage (Image *, const DrawInfo *, const PointInfo *, TypeMetric *) |
#define klass class |
#define MaxIconSize 96 |
Referenced by XBestIconSize().
#define MaxNumberFonts 11 |
#define MaxNumberPens 11 |
Referenced by XGetPixelPacket(), and XMakeStandardColormap().
#define MaxXWindows 12 |
Referenced by DestroyXResources().
#define ThrowXWindowException | ( | severity, | |||
tag, | |||||
context | ) |
{ \ ExceptionInfo \ *exception; \ \ exception=AcquireExceptionInfo(); \ (void) ThrowMagickException(exception,GetMagickModule(),severity, \ tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context, \ strerror(errno)); \ CatchException(exception); \ (void) DestroyExceptionInfo(exception); \ }
Referenced by XBestFont(), XBestVisualInfo(), XGetPixelPacket(), XGetResourceInfo(), XImportImage(), XQueryColorDatabase(), XRemoteCommand(), and XRenderImage().
#define ThrowXWindowFatalException | ( | severity, | |||
tag, | |||||
context | ) |
{ \ ThrowXWindowException(severity,tag,context); \ _exit(1); \ }
Referenced by FontToList(), XBestIconSize(), XBestPixel(), XBestVisualInfo(), XCommandWidget(), XDestroyWindowColors(), XGetPixelPacket(), 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 |
enum ElementType |
enum XColormapType |
enum XState |
MagickExport void DestroyXResources | ( | void | ) |
Referenced by XComponentTerminus().
MagickExport MagickBooleanType XAnnotateImage | ( | Display * | , | |
const XPixelInfo * | , | |||
XAnnotateInfo * | , | |||
Image * | ||||
) |
Referenced by XRenderImage().
MagickExport XFontStruct* XBestFont | ( | Display * | , | |
const XResourceInfo * | , | |||
const | MagickBooleanType | |||
) |
References DestroyString(), _XResourceInfo::font, FontToList(), MagickFalse, RelinquishMagickMemory(), _XResourceInfo::text_font, ThrowXWindowException, XDefaultScreen, XDisplayHeight, XLoadQueryFont, and XServerError.
Referenced by XRenderImage(), and 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 * | ||||
) |
References _XResourceInfo::color_recovery, Colormap, _XResourceInfo::colors, FormatLocaleString(), GetMagickModule, _XResourceInfo::immutable, LocaleCompare(), LocaleUpper(), LogMagickEvent(), MagickFalse, MagickTrue, _XResourceInfo::map_type, MaxStandardColormaps, MaxTextExtent, ThrowXWindowException, ThrowXWindowFatalException, TraceEvent, _XResourceInfo::visual_type, XDefaultDepth, XDefaultScreen, XDefaultVisual, XFree, XGetRGBColormaps, XGetVisualInfo, XInternAtom, XRootWindow, XServerError, XServerWarning, XVisualClassName(), XVisualColormapSize, and XVisualIDFromVisual.
Referenced by XInitializeWindows(), and XRenderImage().
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 | size_t | |||
) |
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 * | ||||
) |
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, TraceEvent, and xerror_alert.
Referenced by XImportImage(), and XRenderImage().
MagickExport void XFreeResources | ( | Display * | , | |
XVisualInfo * | , | |||
XStandardColormap * | , | |||
XPixelInfo * | , | |||
XFontStruct * | , | |||
XResourceInfo * | , | |||
XWindowInfo * | ||||
) |
Referenced by XRenderImage().
MagickExport void XFreeStandardColormap | ( | Display * | , | |
const XVisualInfo * | , | |||
XStandardColormap * | , | |||
XPixelInfo * | ||||
) |
Referenced by XFreeResources(), and XMakeStandardColormap().
MagickExport void XGetAnnotateInfo | ( | XAnnotateInfo * | ) |
Referenced by XRenderImage().
MagickExport void XGetMapInfo | ( | const XVisualInfo * | , | |
const | Colormap, | |||
XStandardColormap * | ||||
) |
Referenced by XMakeStandardColormap(), and XRenderImage().
MagickExport void XGetPixelPacket | ( | Display * | , | |
const XVisualInfo * | , | |||
const XStandardColormap * | , | |||
const XResourceInfo * | , | |||
Image * | , | |||
XPixelInfo * | ||||
) |
Referenced by XMakeStandardColormap(), and XRenderImage().
MagickExport char* XGetResourceClass | ( | XrmDatabase | , | |
const char * | , | |||
const char * | , | |||
char * | ||||
) |
Referenced by XGetResourceInfo().
MagickExport XrmDatabase XGetResourceDatabase | ( | Display * | , | |
const char * | ||||
) |
References ExpandFilename(), FormatLocaleString(), MagickFalse, MaxTextExtent, X11_PREFERENCES_PATH, XGetDefault, XResourceManagerString, XrmCombineDatabase, XrmCombineFileDatabase, XrmGetDatabase, XrmGetStringDatabase, and XrmInitialize.
Referenced by XRenderImage().
MagickExport void XGetResourceInfo | ( | const ImageInfo * | , | |
XrmDatabase | , | |||
const char * | , | |||
XResourceInfo * | ||||
) |
Referenced by XRenderImage().
MagickExport char* * XGetResourceInstance | ( | XrmDatabase | , | |
const char * | , | |||
const char * | , | |||
const char * | ||||
) |
Referenced by XGetResourceInfo().
MagickExport char* * * XGetScreenDensity | ( | Display * | ) |
References FormatLocaleString(), 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 * | ||||
) |
References Colormap, 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] |
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 * | ||||
) |
MagickPrivate MagickBooleanType XRenderImage | ( | Image * | , | |
const DrawInfo * | , | |||
const PointInfo * | , | |||
TypeMetric * | ||||
) |
References AcquireImageInfo(), AcquireString(), _DrawInfo::affine, _XPixelInfo::annotate_context, AnnotateEvent, _TypeMetric::ascent, _XResourceInfo::background_color, _PixelPacket::blue, _TypeMetric::bounds, CloneString(), _XResourceInfo::close_server, Colormap, _XResourceInfo::colormap, _Image::debug, _XAnnotateInfo::degrees, _TypeMetric::descent, ExpandAffine(), _Image::filename, _DrawInfo::fill, _DrawInfo::font, _XResourceInfo::font, _XAnnotateInfo::font_info, _XResourceInfo::foreground_color, ForegroundStencil, FormatLocaleString(), _XAnnotateInfo::geometry, GetClientName(), GetMagickModule, _PixelPacket::green, _TypeMetric::height, _XAnnotateInfo::height, _DrawInfo::interline_spacing, LogMagickEvent(), MagickFalse, MagickPI, MagickTrue, _TypeMetric::max_advance, MaxTextExtent, _PixelPacket::opacity, _XPixelInfo::pen_color, _XPixelInfo::pixels, _TypeMetric::pixels_per_em, _DrawInfo::pointsize, PrivateColormap, _PixelPacket::red, _DrawInfo::render, ResourceLimitError, _AffineMatrix::rx, _AffineMatrix::ry, ScaleQuantumToShort(), _DrawInfo::server_name, _XAnnotateInfo::stencil, _AffineMatrix::sx, _AffineMatrix::sy, _DrawInfo::text, _XAnnotateInfo::text, ThrowXWindowException, TransparentOpacity, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _TypeMetric::width, _XAnnotateInfo::width, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, XAllocStandardColormap, XAnnotateImage(), XBestFont(), XBestVisualInfo(), XDefaultColormap, XDefaultGC, XError(), XFreeFont, XFreeResources(), XGetAnnotateInfo(), XGetMapInfo(), XGetPixelPacket(), XGetResourceDatabase(), XGetResourceInfo(), XOpenDisplay, XServerError, XSetErrorHandler, XTextWidth, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by RenderX11().
MagickExport void XRetainWindowColors | ( | Display * | , | |
const | Window | |||
) |
MagickExport void XSetCursorState | ( | Display * | , | |
XWindows * | , | |||
const | MagickStatusType | |||
) |
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 | size_t | |||
) |
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 | |||
) |
References GetMagickModule, LogMagickEvent(), MagickFalse, TraceEvent, XFree, XGetWindowProperty, XQueryTree, and XWindowByProperty().
Referenced by XClientWindow(), XRemoteCommand(), and XWindowByProperty().