#include "magick/studio.h"#include "magick/animate.h"#include "magick/artifact.h"#include "magick/blob.h"#include "magick/cache.h"#include "magick/client.h"#include "magick/color.h"#include "magick/color-private.h"#include "magick/composite.h"#include "magick/display.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/geometry.h"#include "magick/identify.h"#include "magick/image.h"#include "magick/image-private.h"#include "magick/list.h"#include "magick/locale_.h"#include "magick/log.h"#include "magick/magick.h"#include "magick/memory_.h"#include "magick/monitor.h"#include "magick/option.h"#include "magick/PreRvIcccm.h"#include "magick/quantize.h"#include "magick/quantum.h"#include "magick/quantum-private.h"#include "magick/resource_.h"#include "magick/resize.h"#include "magick/shear.h"#include "magick/statistic.h"#include "magick/string_.h"#include "magick/transform.h"#include "magick/utility.h"#include "magick/widget.h"#include "magick/xwindow.h"#include "magick/xwindow-private.h"#include "magick/version.h"#include <X11/Xproto.h>#include <X11/Xlocale.h>#include <sys/ipc.h>#include <sys/shm.h>#include <X11/extensions/XShm.h>#include <X11/extensions/shape.h>
Go to the source code of this file.
Data Structures | |
| struct | _DiversityPacket |
Defines | |
| #define | XBlueGamma(color) |
| #define | XGammaPixel(map, color) |
| #define | XGreenGamma(color) |
| #define | XRedGamma(color) |
| #define | XStandardPixel(map, color) |
| #define | AccentuateModulate ScaleCharToQuantum(80) |
| #define | HighlightModulate ScaleCharToQuantum(125) |
| #define | ShadowModulate ScaleCharToQuantum(135) |
| #define | DepthModulate ScaleCharToQuantum(185) |
| #define | TroughModulate ScaleCharToQuantum(110) |
| #define | XLIB_ILLEGAL_ACCESS 1 |
| #define | XFD_SET fd_set |
| #define | MaxStandardColormaps 7 |
| #define | XVisualColormapSize(visual_info) |
| #define | scope_height 17 |
| #define | scope_x_hot 8 |
| #define | scope_y_hot 8 |
| #define | scope_width 17 |
| #define | CheckOverflowException(length, width, height) (((height) != 0) && ((length)/((size_t) height) != ((size_t) width))) |
| #define | MinWindowSize 64 |
| #define | MinimumCropArea (unsigned int) 9 |
Typedefs | |
| typedef struct _DiversityPacket | DiversityPacket |
Enumerations | |
| enum | XColorFlags { DoRed = 0x0001, DoGreen = 0x0002, DoBlue = 0x0004, DoMatte = 0x0008 } |
Functions | |
| static const char * | XVisualClassName (const int) |
| static MagickBooleanType | XMakePixmap (Display *, const XResourceInfo *, XWindowInfo *) |
| static void | XMakeImageLSBFirst (const XResourceInfo *, const XWindowInfo *, Image *, XImage *, XImage *) |
| static void | XMakeImageMSBFirst (const XResourceInfo *, const XWindowInfo *, Image *, XImage *, XImage *) |
| static Window | XSelectWindow (Display *, RectangleInfo *) |
| MagickExport void | DestroyXResources (void) |
| MagickExport MagickBooleanType | XAnnotateImage (Display *display, const XPixelInfo *pixel, XAnnotateInfo *annotate_info, Image *image) |
| static char ** | FontToList (char *font) |
| MagickExport XFontStruct * | XBestFont (Display *display, const XResourceInfo *resource_info, const MagickBooleanType text_font) |
| MagickExport void | XBestIconSize (Display *display, XWindowInfo *window, Image *image) |
| MagickExport void | XBestPixel (Display *display, const Colormap colormap, XColor *colors, unsigned int number_colors, XColor *color) |
| static int | MagickMax (const int x, const int y) |
| static unsigned long | MagickMin (const unsigned int x, const unsigned int y) |
| MagickExport XVisualInfo * | XBestVisualInfo (Display *display, XStandardColormap *map_info, XResourceInfo *resource_info) |
| MagickExport int | XCheckDefineCursor (Display *display, Window window, Cursor cursor) |
| MagickExport void | XCheckRefreshWindows (Display *display, XWindows *windows) |
| MagickExport void | XClientMessage (Display *display, const Window window, const Atom protocol, const Atom reason, const Time timestamp) |
| static Window | XClientWindow (Display *display, Window target_window) |
| MagickExport void | XComponentTerminus (void) |
| MagickExport void | XConfigureImageColormap (Display *display, XResourceInfo *resource_info, XWindows *windows, Image *image) |
| MagickExport void | XConstrainWindowPosition (Display *display, XWindowInfo *window_info) |
| MagickExport void | XDelay (Display *display, const unsigned long milliseconds) |
| MagickExport void | XDestroyResourceInfo (XResourceInfo *resource_info) |
| MagickExport void | XDestroyWindowColors (Display *display, Window window) |
| MagickExport void | XDisplayImageInfo (Display *display, const XResourceInfo *resource_info, XWindows *windows, Image *undo_image, Image *image) |
| static void | XDitherImage (Image *image, XImage *ximage) |
| MagickExport MagickBooleanType | XDrawImage (Display *display, const XPixelInfo *pixel, XDrawInfo *draw_info, Image *image) |
| MagickExport int | XError (Display *display, XErrorEvent *error) |
| MagickExport void | XFreeResources (Display *display, XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel, XFontStruct *font_info, XResourceInfo *resource_info, XWindowInfo *window_info) |
| MagickExport void | XFreeStandardColormap (Display *display, const XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel) |
| MagickExport void | XGetAnnotateInfo (XAnnotateInfo *annotate_info) |
| MagickExport void | XGetMapInfo (const XVisualInfo *visual_info, const Colormap colormap, XStandardColormap *map_info) |
| MagickExport void | XGetPixelPacket (Display *display, const XVisualInfo *visual_info, const XStandardColormap *map_info, const XResourceInfo *resource_info, Image *image, XPixelInfo *pixel) |
| MagickExport char * | XGetResourceClass (XrmDatabase database, const char *client_name, const char *keyword, char *resource_default) |
| MagickExport XrmDatabase | XGetResourceDatabase (Display *display, const char *client_name) |
| MagickExport void | XGetResourceInfo (const ImageInfo *image_info, XrmDatabase database, const char *client_name, XResourceInfo *resource_info) |
| MagickExport char * | XGetResourceInstance (XrmDatabase database, const char *client_name, const char *keyword, const char *resource_default) |
| MagickExport char * | XGetScreenDensity (Display *display) |
| static Window | XGetSubwindow (Display *display, Window window, int x, int y) |
| MagickExport MagickBooleanType | XGetWindowColor (Display *display, XWindows *windows, char *name) |
| static Image * | XGetWindowImage (Display *display, const Window window, const unsigned int borders, const unsigned int level) |
| MagickExport void | XGetWindowInfo (Display *display, XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel, XFontStruct *font_info, XResourceInfo *resource_info, XWindowInfo *window) |
| MagickExport void | XHighlightEllipse (Display *display, Window window, GC annotate_context, const RectangleInfo *highlight_info) |
| MagickExport void | XHighlightLine (Display *display, Window window, GC annotate_context, const XSegment *highlight_info) |
| MagickExport void | XHighlightRectangle (Display *display, Window window, GC annotate_context, const RectangleInfo *highlight_info) |
| MagickExport Image * | XImportImage (const ImageInfo *image_info, XImportInfo *ximage_info) |
| MagickExport XWindows * | XInitializeWindows (Display *display, XResourceInfo *resource_info) |
| MagickExport Cursor | XMakeCursor (Display *display, Window window, Colormap colormap, char *background_color, char *foreground_color) |
| MagickExport MagickBooleanType | XMakeImage (Display *display, const XResourceInfo *resource_info, XWindowInfo *window, Image *image, unsigned int width, unsigned int height) |
| MagickExport void | XMakeMagnifyImage (Display *display, XWindows *windows) |
| static MagickRealType | DiversityPixelIntensity (const DiversityPacket *pixel) |
| static int | IntensityCompare (const void *x, const void *y) |
| static int | PopularityCompare (const void *x, const void *y) |
| static Quantum | ScaleXToQuantum (const unsigned long x, const unsigned long scale) |
| MagickExport void | XMakeStandardColormap (Display *display, XVisualInfo *visual_info, XResourceInfo *resource_info, Image *image, XStandardColormap *map_info, XPixelInfo *pixel) |
| MagickExport void | XMakeWindow (Display *display, Window parent, char **argv, int argc, XClassHint *class_hint, XWMHints *manager_hints, XWindowInfo *window_info) |
| static const char * | GetLocaleMonitorMessage (const char *text) |
| MagickExport MagickBooleanType | XMagickProgressMonitor (const char *tag, const MagickOffsetType quantum, const MagickSizeType span, void *magick_unused(client_data)) |
| MagickExport MagickBooleanType | XQueryColorDatabase (const char *target, XColor *color) |
| MagickExport void | XQueryPosition (Display *display, const Window window, int *x, int *y) |
| MagickExport void | XRefreshWindow (Display *display, const XWindowInfo *window, const XEvent *event) |
| MagickExport MagickBooleanType | XRemoteCommand (Display *display, const char *window, const char *filename) |
| MagickExport void | XRetainWindowColors (Display *display, const Window window) |
| MagickExport void | XSetCursorState (Display *display, XWindows *windows, const MagickStatusType state) |
| MagickExport XWindows * | XSetWindows (XWindows *windows_info) |
| MagickExport void | XUserPreferences (XResourceInfo *resource_info) |
| MagickExport void | XWarning (const ExceptionType magick_unused(warning), const char *reason, const char *description) |
| MagickExport Window | XWindowByID (Display *display, const Window root_window, const unsigned long id) |
| MagickExport Window | XWindowByName (Display *display, const Window root_window, const char *name) |
| MagickExport Window | XWindowByProperty (Display *display, const Window window, const Atom property) |
| MagickExport MagickBooleanType | XComponentGenesis (void) |
| MagickExport void | XGetImportInfo (XImportInfo *ximage_info) |
Variables | |
| static MagickBooleanType | xerror_alert = MagickFalse |
| static MagickRealType | blue_gamma = 1.0 |
| static MagickRealType | green_gamma = 1.0 |
| static MagickRealType | red_gamma = 1.0 |
| #define CheckOverflowException | ( | length, | |||
| width, | |||||
| height | ) | (((height) != 0) && ((length)/((size_t) height) != ((size_t) width))) |
Referenced by XMakeImage().
| #define MaxStandardColormaps 7 |
Referenced by XBestVisualInfo().
| #define MinimumCropArea (unsigned int) 9 |
Referenced by XSelectWindow().
| #define MinWindowSize 64 |
| #define scope_height 17 |
Referenced by XMakeCursor().
| #define scope_width 17 |
Referenced by XMakeCursor().
| #define scope_x_hot 8 |
Referenced by XMakeCursor().
| #define scope_y_hot 8 |
Referenced by XMakeCursor().
| #define XBlueGamma | ( | color | ) |
RoundToQuantum(blue_gamma == 1.0 ? (double) \ (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) blue_gamma)* \ QuantumRange)))
Definition at line 104 of file xwindow.c.
Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().
| #define XGammaPixel | ( | map, | |||
| color | ) |
(unsigned long) (map->base_pixel+ \ ((ScaleQuantumToShort(XRedGamma((color)->red))*map->red_max/65535L)* \ map->red_mult)+ \ ((ScaleQuantumToShort(XGreenGamma((color)->green))*map->green_max/65535L)* \ map->green_mult)+ \ ((ScaleQuantumToShort(XBlueGamma((color)->blue))*map->blue_max/65535L)* \ map->blue_mult))
Definition at line 107 of file xwindow.c.
Referenced by XGetPixelPacket(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
| #define XGreenGamma | ( | color | ) |
RoundToQuantum(green_gamma == 1.0 ? (double) \ (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) green_gamma)* \ QuantumRange)))
Definition at line 114 of file xwindow.c.
Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().
| #define XRedGamma | ( | color | ) |
RoundToQuantum(red_gamma == 1.0 ? (double) \ (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) red_gamma)* \ QuantumRange)))
Definition at line 117 of file xwindow.c.
Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().
| #define XStandardPixel | ( | map, | |||
| color | ) |
(unsigned long) (map->base_pixel+ \
(((color)->red*map->red_max/65535L)*map->red_mult)+ \
(((color)->green*map->green_max/65535L)*map->green_mult)+ \
(((color)->blue*map->blue_max/65535L)*map->blue_mult))
Definition at line 120 of file xwindow.c.
Referenced by XGetPixelPacket(), and XMakeStandardColormap().
| #define XVisualColormapSize | ( | visual_info | ) |
MagickMin((unsigned int) (\ (visual_info->klass == TrueColor) || (visual_info->klass == DirectColor) ? \ visual_info->red_mask | visual_info->green_mask | visual_info->blue_mask : \ (unsigned int) visual_info->colormap_size),1U << visual_info->depth)
Referenced by XBestVisualInfo().
| typedef struct _DiversityPacket DiversityPacket |
| enum XColorFlags |
| MagickExport void DestroyXResources | ( | void | ) |
Definition at line 231 of file xwindow.c.
References _XPixelInfo::annotate_context, _XWindows::backdrop, _XWindowInfo::busy_cursor, _XWindows::class_hints, _XWindows::command, _XWindows::context, _XWindowInfo::cursor, DestroyImage(), DestroyXWidget(), _XWindows::display, _XWindows::font_info, _XWindows::group_leader, _XPixelInfo::highlight_context, _XWindowInfo::highlight_stipple, _XWindows::icon, _XWindows::icon_map, _XWindowInfo::icon_name, _XWindows::icon_pixel, _XWindows::icon_resources, _XWindows::icon_visual, _XWindowInfo::id, _XWindowInfo::image, _XWindows::image, _XWindows::info, MagickFalse, _XWindows::magnify, _XWindows::manager_hints, _XWindows::map_info, _XWindowInfo::mapped, _XWindowInfo::matte_pixmap, MaxXWindows, NewImageList(), _XWindows::pan, _XWindows::pixel_info, _XPixelInfo::pixels, _XWindowInfo::pixmap, _XWindows::popup, RelinquishMagickMemory(), _XWindowInfo::screen, _XWindowInfo::segment_info, _XWindowInfo::shadow_stipple, _XWindows::visual_info, _XWindows::widget, _XPixelInfo::widget_context, XDestroyWindow, XFree, XFreeCursor, XFreeFont, XFreeGC, XFreePixmap, _XWindowInfo::ximage, XSetWindows(), and XWithdrawWindow.
| static MagickRealType DiversityPixelIntensity | ( | const DiversityPacket * | pixel | ) | [inline, static] |
Definition at line 7580 of file xwindow.c.
References _DiversityPacket::blue, _DiversityPacket::green, and _DiversityPacket::red.
Referenced by IntensityCompare().
| static char** FontToList | ( | char * | font | ) | [static] |
Definition at line 712 of file xwindow.c.
References AcquireQuantumMemory(), CopyMagickString(), ResourceLimitError, and ThrowXWindowFatalException.
Referenced by XBestFont().
| static const char* GetLocaleMonitorMessage | ( | const char * | text | ) | [static] |
Definition at line 8488 of file xwindow.c.
References CopyMagickMemory(), FormatMagickString(), GetLocaleMessage(), and MaxTextExtent.
Referenced by XMagickProgressMonitor().
| static int IntensityCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
Definition at line 7590 of file xwindow.c.
References DiversityPixelIntensity().
Referenced by XMakeStandardColormap().
| static int MagickMax | ( | const int | x, | |
| const int | y | |||
| ) | [inline, static] |
Definition at line 1122 of file xwindow.c.
Referenced by XGetPixelPacket(), and XMakeStandardColormap().
| static unsigned long MagickMin | ( | const unsigned int | x, | |
| const unsigned int | y | |||
| ) | [inline, static] |
Definition at line 1129 of file xwindow.c.
Referenced by XMakeStandardColormap().
| static int PopularityCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
Definition at line 7606 of file xwindow.c.
References _DiversityPacket::count.
Referenced by XMakeStandardColormap().
| static Quantum ScaleXToQuantum | ( | const unsigned long | x, | |
| const unsigned long | scale | |||
| ) | [inline, static] |
Definition at line 7621 of file xwindow.c.
References QuantumRange.
Referenced by XMakeStandardColormap().
| MagickExport MagickBooleanType XAnnotateImage | ( | Display * | display, | |
| const XPixelInfo * | pixel, | |||
| XAnnotateInfo * | annotate_info, | |||
| Image * | image | |||
| ) |
Definition at line 445 of file xwindow.c.
References AcquireImage(), _Image::background_color, BackgroundStencil, _XPixelInfo::box_color, _Image::columns, CompositeImage(), CopyCompositeOp, _XAnnotateInfo::degrees, DestroyImage(), _Image::exception, _XAnnotateInfo::font_info, ForegroundStencil, FormatMagickString(), _XAnnotateInfo::geometry, GetAuthenticPixels(), GetMagickModule, GetOneVirtualPixel(), _XAnnotateInfo::height, LogMagickEvent(), MagickFalse, MagickTrue, _Image::matte, MaxTextExtent, OpaqueOpacity, OpaqueStencil, OverCompositeOp, _XPixelInfo::pen_color, RotateImage(), _Image::rows, ScaleShortToQuantum(), _XAnnotateInfo::stencil, SyncAuthenticPixels(), _XAnnotateInfo::text, TraceEvent, TransformImage(), TransparentOpacity, _XAnnotateInfo::width, XCreateGC, XCreatePixmap, XDefaultDepth, XDefaultScreen, XDrawImageString, XFreeGC, XFreePixmap, XGetImage, XParseGeometry, and XRootWindow.
| MagickExport XFontStruct* XBestFont | ( | Display * | display, | |
| const XResourceInfo * | resource_info, | |||
| const MagickBooleanType | text_font | |||
| ) |
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 * | display, | |
| XWindowInfo * | window, | |||
| Image * | image | |||
| ) |
Definition at line 872 of file xwindow.c.
References _Image::columns, _XWindowInfo::crop_geometry, _Image::filename, GetMagickModule, _XWindowInfo::height, LogMagickEvent(), MaxIconSize, ResourceLimitError, _Image::rows, _XWindowInfo::screen, ThrowXWindowFatalException, TraceEvent, _XWindowInfo::width, XAllocIconSize, XFree, XGetIconSizes, XParseGeometry, and XRootWindow.
| MagickExport void XBestPixel | ( | Display * | display, | |
| const Colormap | colormap, | |||
| XColor * | colors, | |||
| unsigned int | number_colors, | |||
| XColor * | color | |||
| ) |
Definition at line 1000 of file xwindow.c.
References AcquireQuantumMemory(), _MagickPixelPacket::blue, GetMagickModule, _MagickPixelPacket::green, LogMagickEvent(), MagickFalse, MagickTrue, QuantumRange, _MagickPixelPacket::red, RelinquishMagickMemory(), ResourceLimitError, ThrowXWindowFatalException, TraceEvent, XAllocColor, and XQueryColors.
| MagickExport XVisualInfo* XBestVisualInfo | ( | Display * | display, | |
| XStandardColormap * | map_info, | |||
| XResourceInfo * | resource_info | |||
| ) |
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 * | display, | |
| Window | window, | |||
| Cursor | cursor | |||
| ) |
Definition at line 1439 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), TraceEvent, XDefaultScreen, XDefineCursor, and XRootWindow.
| MagickExport void XCheckRefreshWindows | ( | Display * | display, | |
| XWindows * | windows | |||
| ) |
Definition at line 1475 of file xwindow.c.
References _XWindows::command, GetMagickModule, _XWindowInfo::id, _XWindows::image, LogMagickEvent(), MagickFalse, SuspendTime, TraceEvent, XCheckTypedWindowEvent, XCommandWidget(), XDelay(), and XRefreshWindow().
| MagickExport void XClientMessage | ( | Display * | display, | |
| const Window | window, | |||
| const Atom | protocol, | |||
| const Atom | reason, | |||
| const Time | timestamp | |||
| ) |
Definition at line 1534 of file xwindow.c.
References MagickFalse, and XSendEvent.
| static Window XClientWindow | ( | Display * | display, | |
| Window | target_window | |||
| ) | [static] |
Definition at line 1581 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, TraceEvent, XGetWindowProperty, XInternAtom, and XWindowByProperty().
Referenced by XGetWindowColor(), and XImportImage().
| MagickExport MagickBooleanType XComponentGenesis | ( | void | ) |
Definition at line 9646 of file xwindow.c.
References MagickTrue.
| MagickExport void XComponentTerminus | ( | void | ) |
Definition at line 1637 of file xwindow.c.
References DestroyXResources().
| MagickExport void XConfigureImageColormap | ( | Display * | display, | |
| XResourceInfo * | resource_info, | |||
| XWindows * | windows, | |||
| Image * | image | |||
| ) |
Definition at line 1672 of file xwindow.c.
References _XWindows::command, _XWindowInfo::id, _XWindows::im_protocols, _XWindows::im_update_colormap, _XWindows::image, MagickFalse, MagickTrue, _XWindows::magnify, _XWindows::map_info, _XWindowInfo::mapped, _XWindows::pan, _XWindows::pixel_info, _XWindows::visual_info, _XWindows::widget, XCheckRefreshWindows(), XClientMessage(), XMakeStandardColormap(), XSetCursorState(), and XSetWindowColormap.
| MagickExport void XConstrainWindowPosition | ( | Display * | display, | |
| XWindowInfo * | window_info | |||
| ) |
Definition at line 1724 of file xwindow.c.
References GetMagickModule, _XWindowInfo::height, LogMagickEvent(), _XWindowInfo::screen, TraceEvent, _XWindowInfo::width, _XWindowInfo::x, XDisplayHeight, XDisplayWidth, and _XWindowInfo::y.
| MagickExport void XDelay | ( | Display * | display, | |
| const unsigned long | milliseconds | |||
| ) |
| MagickExport void XDestroyResourceInfo | ( | XResourceInfo * | resource_info | ) |
Definition at line 1833 of file xwindow.c.
References _XResourceInfo::client_name, DestroyQuantizeInfo(), DestroyString(), _XResourceInfo::image_geometry, _XResourceInfo::name, _XResourceInfo::quantize_info, RelinquishMagickMemory(), and ResetMagickMemory().
| MagickExport void XDestroyWindowColors | ( | Display * | display, | |
| Window | window | |||
| ) |
Definition at line 1875 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, ThrowXWindowFatalException, TraceEvent, XDeleteProperty, XFree, XGetWindowProperty, XInternAtom, XKillClient, and XServerError.
| MagickExport void XDisplayImageInfo | ( | Display * | display, | |
| const XResourceInfo * | resource_info, | |||
| XWindows * | windows, | |||
| Image * | undo_image, | |||
| Image * | image | |||
| ) |
Definition at line 1952 of file xwindow.c.
References AcquireUniqueFileResource(), _XResourceInfo::colormap, _Image::columns, _XWindowInfo::crop_geometry, _Image::debug, DestroyString(), _XResourceInfo::display_gamma, _Image::exception, fdopen, _Image::filename, FileToString(), _XResourceInfo::font, FormatMagickString(), _XResourceInfo::gamma_correct, GetMagickModule, GetPreviousImageInList(), _XWindowInfo::id, IdentifyImage(), _XWindows::image, _XWindows::info, _Image::list, LogMagickEvent(), MagickFalse, MagickTrue, MaxTextExtent, _XWindowInfo::pixmap, RelinquishMagickMemory(), RelinquishUniqueFileResource(), _Image::rows, _XWindowInfo::screen, _XWindowInfo::shape, _XWindowInfo::shared_memory, SharedColormap, _XWindowInfo::storage_class, StringToList(), _XResourceInfo::text_font, TraceEvent, _XResourceInfo::undo_cache, _XWindows::visual_info, _XWindowInfo::ximage, XNoticeWidget(), XTextViewWidget(), XVisualClassName(), and XWithdrawWindow.
| static void XDitherImage | ( | Image * | image, | |
| XImage * | ximage | |||
| ) | [static] |
Definition at line 2112 of file xwindow.c.
References AcquireQuantumMemory(), _PixelPacket::blue, _Image::columns, _Image::exception, _Image::filename, GetVirtualPixels(), _PixelPacket::green, _PixelPacket::red, RelinquishMagickMemory(), ResourceLimitError, RoundToQuantum(), _Image::rows, ScaleQuantumToChar(), and ThrowXWindowFatalException.
Referenced by XMakeImageLSBFirst(), and XMakeImageMSBFirst().
| MagickExport MagickBooleanType XDrawImage | ( | Display * | display, | |
| const XPixelInfo * | pixel, | |||
| XDrawInfo * | draw_info, | |||
| Image * | image | |||
| ) |
Definition at line 2285 of file xwindow.c.
References AcquireImage(), _Image::background_color, CircleElement, _Image::columns, CompositeImage(), _XDrawInfo::coordinate_info, CopyOpacityCompositeOp, _Image::debug, _XDrawInfo::degrees, DestroyImage(), DirectClass, _XDrawInfo::element, EllipseElement, _Image::exception, FillCircleElement, FillEllipseElement, FillPolygonElement, FillRectangleElement, FormatMagickString(), _XDrawInfo::geometry, GetAuthenticPixels(), GetMagickModule, GetOneVirtualPixel(), _RectangleInfo::height, _XDrawInfo::height, _XDrawInfo::line_info, _XDrawInfo::line_width, LineElement, LogMagickEvent(), MagickFalse, MagickTrue, _Image::matte, MaxTextExtent, _XDrawInfo::number_coordinates, _PixelPacket::opacity, OpaqueOpacity, OpaqueStencil, OverCompositeOp, _XPixelInfo::pen_color, PointElement, PolygonElement, QueueAuthenticPixels(), _XDrawInfo::rectangle_info, RectangleElement, RotateImage(), _Image::rows, ScaleShortToQuantum(), SetImageStorageClass(), _XDrawInfo::stencil, _XDrawInfo::stipple, SyncAuthenticPixels(), TraceEvent, TransformImage(), TransparentOpacity, TransparentStencil, _RectangleInfo::width, _XDrawInfo::width, _RectangleInfo::x, XCreateGC, XCreatePixmap, XDefaultDepth, XDefaultScreen, XDrawArc, XDrawLine, XDrawLines, XDrawRectangle, XFillArc, XFillPolygon, XFillRectangle, XFreeGC, XFreePixmap, XGetImage, XParseGeometry, XRootWindow, XSetBackground, XSetFillStyle, XSetForeground, XSetStipple, and _RectangleInfo::y.
| MagickExport int XError | ( | Display * | display, | |
| XErrorEvent * | error | |||
| ) |
Definition at line 2650 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, TraceEvent, and xerror_alert.
Referenced by XImportImage().
| MagickExport void XFreeResources | ( | Display * | display, | |
| XVisualInfo * | visual_info, | |||
| XStandardColormap * | map_info, | |||
| XPixelInfo * | pixel, | |||
| XFontStruct * | font_info, | |||
| XResourceInfo * | resource_info, | |||
| XWindowInfo * | window_info | |||
| ) |
Definition at line 2725 of file xwindow.c.
References _XWindowInfo::annotate_context, _XWindowInfo::busy_cursor, _XResourceInfo::close_server, _XWindowInfo::cursor, GetMagickModule, _XWindowInfo::highlight_context, _XWindowInfo::id, LogMagickEvent(), MagickFalse, _XResourceInfo::map_type, TraceEvent, _XWindowInfo::widget_context, XCloseDisplay, XDestroyWindow, XFree, XFreeCursor, XFreeFont, XFreeGC, XFreeStandardColormap(), _XWindowInfo::ximage, and XRootWindow.
| MagickExport void XFreeStandardColormap | ( | Display * | display, | |
| const XVisualInfo * | visual_info, | |||
| XStandardColormap * | map_info, | |||
| XPixelInfo * | pixel | |||
| ) |
Definition at line 2816 of file xwindow.c.
References _XPixelInfo::colors, GetMagickModule, LogMagickEvent(), _XPixelInfo::pixels, RelinquishMagickMemory(), TraceEvent, XDefaultColormap, XFlush, XFreeColormap, and XFreeColors.
| MagickExport void XGetAnnotateInfo | ( | XAnnotateInfo * | annotate_info | ) |
Definition at line 2869 of file xwindow.c.
References _XAnnotateInfo::degrees, _XAnnotateInfo::font_info, ForegroundStencil, _XAnnotateInfo::geometry, GetMagickModule, _XAnnotateInfo::height, LogMagickEvent(), _XAnnotateInfo::next, _XAnnotateInfo::previous, _XAnnotateInfo::stencil, _XAnnotateInfo::text, TraceEvent, _XAnnotateInfo::width, _XAnnotateInfo::x, XSetLocaleModifiers, XSupportsLocale, and _XAnnotateInfo::y.
| MagickExport void XGetImportInfo | ( | XImportInfo * | ximage_info | ) |
Definition at line 9673 of file xwindow.c.
References _XImportInfo::borders, _XImportInfo::descend, _XImportInfo::frame, MagickFalse, MagickTrue, _XImportInfo::screen, and _XImportInfo::silent.
| MagickExport void XGetMapInfo | ( | const XVisualInfo * | visual_info, | |
| const Colormap | colormap, | |||
| XStandardColormap * | map_info | |||
| ) |
Definition at line 2919 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), and TraceEvent.
| MagickExport void XGetPixelPacket | ( | Display * | display, | |
| const XVisualInfo * | visual_info, | |||
| const XStandardColormap * | map_info, | |||
| const XResourceInfo * | resource_info, | |||
| Image * | image, | |||
| XPixelInfo * | pixel | |||
| ) |
Definition at line 2994 of file xwindow.c.
References AcquireQuantumMemory(), _XResourceInfo::background_color, _XPixelInfo::background_color, blue_gamma, _XResourceInfo::border_color, _XPixelInfo::border_color, BorderColor, _XPixelInfo::box_color, _XPixelInfo::box_index, _Image::colormap, _Image::colors, _XPixelInfo::colors, _XPixelInfo::depth_color, DepthModulate, _XResourceInfo::display_gamma, DoBlue, DoGreen, DoRed, _Image::filename, _XResourceInfo::foreground_color, _XPixelInfo::foreground_color, ForegroundColor, _Image::gamma, _XResourceInfo::gamma_correct, GetMagickModule, green_gamma, _XPixelInfo::highlight_color, HighlightModulate, LogMagickEvent(), MagickFalse, MagickMax(), _XResourceInfo::matte_color, _XPixelInfo::matte_color, MaxNumberPens, ParseGeometry(), _XPixelInfo::pen_color, _XResourceInfo::pen_colors, _XPixelInfo::pen_colors, _XPixelInfo::pen_index, _XPixelInfo::pixels, PseudoClass, QuantumRange, red_gamma, RelinquishMagickMemory(), ResourceLimitFatalError, _GeometryInfo::rho, ScaleQuantumToShort(), _XPixelInfo::shadow_color, ShadowModulate, _GeometryInfo::sigma, SigmaValue, _Image::storage_class, ThrowXWindowFatalException, TraceEvent, _XPixelInfo::trough_color, TroughModulate, XGammaPixel, _GeometryInfo::xi, XiValue, XParseColor, XServerError, and XStandardPixel.
| MagickExport char* XGetResourceClass | ( | XrmDatabase | database, | |
| const char * | client_name, | |||
| const char * | keyword, | |||
| char * | resource_default | |||
| ) |
Definition at line 3245 of file xwindow.c.
References FormatMagickString(), MaxTextExtent, and XrmGetResource.
| MagickExport XrmDatabase XGetResourceDatabase | ( | Display * | display, | |
| const char * | client_name | |||
| ) |
Definition at line 3334 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 * | image_info, | |
| XrmDatabase | database, | |||
| const char * | client_name, | |||
| XResourceInfo * | resource_info | |||
| ) |
Definition at line 3438 of file xwindow.c.
References AcquireString(), _XResourceInfo::backdrop, _XResourceInfo::background_color, _XResourceInfo::border_color, _XResourceInfo::border_width, BorderColor, _XResourceInfo::client_name, CloneQuantizeInfo(), _XResourceInfo::close_server, _XResourceInfo::color_recovery, _XResourceInfo::colormap, _XResourceInfo::confirm_edit, _XResourceInfo::confirm_exit, ConstantString(), _XResourceInfo::delay, _XResourceInfo::display_gamma, _XResourceInfo::display_warnings, _XResourceInfo::font, _XResourceInfo::font_name, _XResourceInfo::foreground_color, ForegroundColor, _XResourceInfo::gamma_correct, getcwd, GetMagickModule, _XResourceInfo::gravity, _XResourceInfo::home_directory, _XResourceInfo::icon_geometry, _XResourceInfo::iconic, _XResourceInfo::image_geometry, _XResourceInfo::image_info, _XResourceInfo::immutable, IsMagickTrue(), LocaleCompare(), LogMagickEvent(), MagickFalse, MagickGravityOptions, MagickTrue, _XResourceInfo::magnify, _XResourceInfo::map_type, _XResourceInfo::matte_color, MaxTextExtent, _XResourceInfo::name, OptionError, ParseMagickOption(), _XResourceInfo::pause, _XResourceInfo::pen_colors, PrivateColormap, _XResourceInfo::quantize_info, _XResourceInfo::quantum, ResetMagickMemory(), _XResourceInfo::resource_database, SetImageInfoProgressMonitor(), SharedColormap, _XResourceInfo::text_font, ThrowXWindowFatalException, _XResourceInfo::title, TraceEvent, UndefinedColormap, _XResourceInfo::undo_cache, _XResourceInfo::update, _XResourceInfo::use_pixmap, _XResourceInfo::use_shared_memory, _XResourceInfo::visual_type, _XResourceInfo::window_group, _XResourceInfo::window_id, _XResourceInfo::write_filename, XGetResourceClass(), XGetResourceInstance(), and XMagickProgressMonitor().
| MagickExport char* XGetResourceInstance | ( | XrmDatabase | database, | |
| const char * | client_name, | |||
| const char * | keyword, | |||
| const char * | resource_default | |||
| ) |
Definition at line 3638 of file xwindow.c.
References FormatMagickString(), MaxTextExtent, and XrmGetResource.
| MagickExport char* XGetScreenDensity | ( | Display * | display | ) |
Definition at line 3691 of file xwindow.c.
References FormatMagickString(), GetPageGeometry(), MaxTextExtent, and XDefaultScreen.
| static Window XGetSubwindow | ( | Display * | display, | |
| Window | window, | |||
| int | x, | |||
| int | y | |||
| ) | [static] |
Definition at line 3747 of file xwindow.c.
References XDefaultScreen, XRootWindow, and XTranslateCoordinates.
Referenced by XSelectWindow().
| MagickExport MagickBooleanType XGetWindowColor | ( | Display * | display, | |
| XWindows * | windows, | |||
| char * | name | |||
| ) |
Definition at line 3813 of file xwindow.c.
References _PixelPacket::blue, _Image::exception, GetMagickModule, _PixelPacket::green, _XWindowInfo::image, _XWindows::image, LogMagickEvent(), MagickFalse, MagickTrue, _PixelPacket::opacity, OpaqueOpacity, QueryColorname(), _PixelPacket::red, ScaleShortToQuantum(), TraceEvent, _RectangleInfo::x, X11Compliance, XClientWindow(), XDefaultScreen, XGetGeometry, XGetImage, XGetWindowAttributes, XQueryColor, XRootWindow, XSelectWindow(), XTranslateCoordinates, and _RectangleInfo::y.
| static Image* XGetWindowImage | ( | Display * | display, | |
| const Window | window, | |||
| const unsigned int | borders, | |||
| const unsigned int | level | |||
| ) | [static] |
Definition at line 3940 of file xwindow.c.
References AcquireImage(), AcquireImageColormap(), AcquireMagickMemory(), AcquireQuantumMemory(), _PixelPacket::blue, _Image::colormap, _Image::colors, _Image::columns, CompositeImage(), CopyCompositeOp, DestroyImage(), DirectClass, _Image::exception, GetAuthenticIndexQueue(), GetMagickModule, _PixelPacket::green, _RectangleInfo::height, LogMagickEvent(), MagickFalse, MagickTrue, NewImageList(), PseudoClass, QueueAuthenticPixels(), _PixelPacket::red, RelinquishMagickMemory(), ResizeQuantumMemory(), ResourceLimitError, _Image::rows, ScaleShortToQuantum(), _Image::storage_class, SyncAuthenticPixels(), ThrowXWindowFatalException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, XDefaultScreen, XDisplayHeight, XDisplayWidth, XFree, XGetImage, XGetWindowAttributes, XQueryColors, XQueryTree, XRootWindow, XTranslateCoordinates, and _RectangleInfo::y.
Referenced by XImportImage().
| MagickExport void XGetWindowInfo | ( | Display * | display, | |
| XVisualInfo * | visual_info, | |||
| XStandardColormap * | map_info, | |||
| XPixelInfo * | pixel, | |||
| XFontStruct * | font_info, | |||
| XResourceInfo * | resource_info, | |||
| XWindowInfo * | window | |||
| ) |
Definition at line 4536 of file xwindow.c.
References AcquireQuantumMemory(), AcquireString(), _XPixelInfo::annotate_context, _XWindowInfo::annotate_context, _XWindowInfo::attributes, _XPixelInfo::background_color, _XPixelInfo::border_color, _XResourceInfo::border_width, _XWindowInfo::border_width, _XWindowInfo::busy_cursor, CloneString(), _XWindowInfo::crop_geometry, _XWindowInfo::cursor, _XWindowInfo::data, _XWindowInfo::depth, _XWindowInfo::flags, _XWindowInfo::font_info, ForgetGravity, _XWindowInfo::geometry, GetMagickModule, _XWindowInfo::height, _XWindowInfo::height_inc, _XPixelInfo::highlight_context, _XWindowInfo::highlight_context, _XWindowInfo::highlight_stipple, _XResourceInfo::icon_geometry, _XWindowInfo::icon_geometry, _XWindowInfo::icon_name, _XWindowInfo::id, _XWindowInfo::immutable, LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::map_info, _XWindowInfo::mapped, _XWindowInfo::mask, _XWindowInfo::matte_image, _XWindowInfo::matte_pixmap, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, NorthWestGravity, _XWindowInfo::orphan, _XWindowInfo::pixel_info, _XWindowInfo::pixmap, _XWindowInfo::root, _XWindowInfo::screen, _XWindowInfo::segment_info, _XWindowInfo::shadow_stipple, _XWindowInfo::shape, _XWindowInfo::shared_memory, _XWindowInfo::stasis, _XWindowInfo::storage_class, TraceEvent, _XWindowInfo::use_pixmap, _XWindowInfo::visual, _XWindowInfo::visual_info, _XPixelInfo::widget_context, _XWindowInfo::widget_context, _XWindowInfo::width, _XWindowInfo::width_inc, _XWindowInfo::x, XCreateFontCursor, XDisplayWidth, XFreeCursor, XFreePixmap, _XWindowInfo::ximage, XRootWindow, and _XWindowInfo::y.
| MagickExport void XHighlightEllipse | ( | Display * | display, | |
| Window | window, | |||
| GC | annotate_context, | |||
| const RectangleInfo * | highlight_info | |||
| ) |
Definition at line 4686 of file xwindow.c.
References GetMagickModule, _RectangleInfo::height, LogMagickEvent(), TraceEvent, _RectangleInfo::width, _RectangleInfo::x, XDrawArc, and _RectangleInfo::y.
| MagickExport void XHighlightLine | ( | Display * | display, | |
| Window | window, | |||
| GC | annotate_context, | |||
| const XSegment * | highlight_info | |||
| ) |
Definition at line 4736 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), TraceEvent, and XDrawLine.
| MagickExport void XHighlightRectangle | ( | Display * | display, | |
| Window | window, | |||
| GC | annotate_context, | |||
| const RectangleInfo * | highlight_info | |||
| ) |
Definition at line 4780 of file xwindow.c.
References GetMagickModule, _RectangleInfo::height, LogMagickEvent(), TraceEvent, _RectangleInfo::width, _RectangleInfo::x, XDrawRectangle, and _RectangleInfo::y.
| MagickExport Image* XImportImage | ( | const ImageInfo * | image_info, | |
| XImportInfo * | ximage_info | |||
| ) |
Definition at line 4822 of file xwindow.c.
References _XImportInfo::borders, CloneImage(), CopyMagickString(), CropImage(), _ImageInfo::debug, _XImportInfo::descend, DestroyImage(), _Image::exception, _Image::filename, _ImageInfo::filename, _XImportInfo::frame, GetMagickModule, _RectangleInfo::height, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, _XImportInfo::screen, _ImageInfo::server_name, _ImageInfo::signature, _XImportInfo::silent, SuspendTime, ThrowXWindowFatalException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, XBell, XClientWindow(), XCloseDisplay, XDefaultScreen, XDelay(), XDisplayName, XError(), XFree, XGetGeometry, XGetWindowAttributes, XGetWindowImage(), XGetWMColormapWindows, XGetWMName, XGrabServer, XListInstalledColormaps, XOpenDisplay, XQueryTree, XRootWindow, XSelectWindow(), XServerError, XSetErrorHandler, XTranslateCoordinates, XUngrabServer, XWindowByID(), XWindowByName(), and _RectangleInfo::y.
| MagickExport XWindows* XInitializeWindows | ( | Display * | display, | |
| XResourceInfo * | resource_info | |||
| ) |
Definition at line 5095 of file xwindow.c.
References AcquireMagickMemory(), _XPixelInfo::annotate_context, _XWindows::class_hints, _XResourceInfo::colormap, _XWindows::display, _XWindows::dnd_protocols, _XWindows::font_info, GetMagickModule, GetMagickVersion(), _XWindows::group_leader, _XPixelInfo::highlight_context, _XWindows::icon_map, _XWindows::icon_pixel, _XWindows::icon_resources, _XWindows::icon_visual, _XWindowInfo::id, _XWindows::im_exit, _XWindows::im_former_image, _XWindows::im_next_image, _XWindows::im_protocols, _XWindows::im_remote_command, _XWindows::im_retain_colors, _XWindows::im_update_colormap, _XWindows::im_update_widget, IsEventLogging(), IsWindows95(), LogMagickEvent(), MagickFalse, MagickTrue, _XWindows::manager_hints, _XWindows::map_info, _XWindows::pixel_info, _XPixelInfo::pixels, ResetMagickMemory(), ResourceLimitFatalError, SharedColormap, ThrowXWindowFatalException, _XWindows::visual_info, _XResourceInfo::visual_type, _XPixelInfo::widget_context, _XResourceInfo::window_group, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, X11Event, XAllocClassHint, XAllocStandardColormap, XAllocWMHints, XBestVisualInfo(), XInternAtom, XRootWindow, XServerFatalError, XSynchronize, XVisualClassName(), XWindowByID(), and XWindowByName().
| MagickExport MagickBooleanType XMagickProgressMonitor | ( | const char * | tag, | |
| const MagickOffsetType | quantum, | |||
| const MagickSizeType | span, | |||
| void * | magick_unusedclient_data | |||
| ) |
Definition at line 8511 of file xwindow.c.
References _XWindows::display, GetLocaleMonitorMessage(), _XWindows::info, MagickFalse, MagickTrue, _XWindowInfo::mapped, XProgressMonitorWidget(), and XSetWindows().
| MagickExport Cursor XMakeCursor | ( | Display * | display, | |
| Window | window, | |||
| Colormap | colormap, | |||
| char * | background_color, | |||
| char * | foreground_color | |||
| ) |
Definition at line 5292 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 * | display, | |
| const XResourceInfo * | resource_info, | |||
| XWindowInfo * | window, | |||
| Image * | image, | |||
| unsigned int | width, | |||
| unsigned int | height | |||
| ) |
Definition at line 5391 of file xwindow.c.
References AcquireQuantumMemory(), _XWindowInfo::busy_cursor, CheckOverflowException, _XPixelInfo::colors, _Image::columns, _XWindowInfo::crop_geometry, CropImage(), _XWindowInfo::cursor, _XWindowInfo::depth, _XWindowInfo::destroy, DestroyImage(), _Image::exception, GetMagickModule, _XWindowInfo::height, _XWindowInfo::id, _XWindowInfo::image, IsEventLogging(), LogMagickEvent(), MAGICKCORE_HAVE_SHARED_MEMORY, MagickFalse, MagickTrue, _Image::matte, _XWindowInfo::matte_image, _XWindowInfo::matte_pixmap, NewImageList(), _Image::page, ParsePageGeometry(), _XWindowInfo::pixel_info, _Image::rows, SampleImage(), _XWindowInfo::screen, _XWindowInfo::segment_info, _XWindowInfo::shape, _XWindowInfo::shared_memory, _XWindowInfo::stasis, ThumbnailImage(), TraceEvent, _XWindowInfo::visual, _XWindowInfo::width, _RectangleInfo::x, X11Event, XBitmapPad, XCheckDefineCursor(), XCreateGC, XCreateImage, XCreatePixmap, XDisplayHeight, XDisplayWidth, xerror_alert, XFlush, XFreeGC, XFreePixmap, _XWindowInfo::ximage, XMakeImageLSBFirst(), XMakeImageMSBFirst(), XMakePixmap(), XPutImage, XShapeCombineMask, XSync, and _RectangleInfo::y.
| static void XMakeImageLSBFirst | ( | const XResourceInfo * | resource_info, | |
| const XWindowInfo * | window, | |||
| Image * | image, | |||
| XImage * | ximage, | |||
| XImage * | matte_image | |||
| ) | [static] |
Definition at line 5810 of file xwindow.c.
References AcquireImageInfo(), _XPixelInfo::background_color, _PixelPacket::blue, blue_gamma, CloneImage(), _XResourceInfo::color_recovery, _Image::colormap, _XPixelInfo::colors, _Image::colors, _Image::columns, CompositeImage(), ConstantString(), CopyMagickString(), _Image::debug, DestroyImage(), DestroyImageInfo(), DirectClass, _QuantizeInfo::dither, DstOverCompositeOp, _Image::exception, _ImageInfo::filename, _Image::filename, _XPixelInfo::foreground_color, FormatMagickString(), GetMagickModule, GetVirtualIndexQueue(), GetVirtualPixels(), _PixelPacket::green, green_gamma, _XResourceInfo::image_info, LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::map_info, _Image::matte, MaxTextExtent, _PixelPacket::opacity, _XWindowInfo::pixel_info, PixelIntensity(), PixelIntensityToQuantum(), _XPixelInfo::pixels, _XResourceInfo::quantize_info, QuantumRange, ReadImage(), _PixelPacket::red, red_gamma, _Image::rows, ScaleQuantumToChar(), _ImageInfo::size, _Image::storage_class, _ImageInfo::texture, TraceEvent, XBlueGamma, XDitherImage(), XGammaPixel, XGreenGamma, XPixelIntensity(), and XRedGamma.
Referenced by XMakeImage().
| static void XMakeImageMSBFirst | ( | const XResourceInfo * | resource_info, | |
| const XWindowInfo * | window, | |||
| Image * | image, | |||
| XImage * | ximage, | |||
| XImage * | matte_image | |||
| ) |
Definition at line 6414 of file xwindow.c.
References AcquireImageInfo(), _XPixelInfo::background_color, _PixelPacket::blue, blue_gamma, CloneImage(), _XResourceInfo::color_recovery, _Image::colormap, _XPixelInfo::colors, _Image::colors, _Image::columns, CompositeImage(), ConstantString(), CopyMagickString(), _Image::debug, DestroyImage(), DestroyImageInfo(), DirectClass, _QuantizeInfo::dither, DstOverCompositeOp, _Image::exception, _ImageInfo::filename, _Image::filename, _XPixelInfo::foreground_color, FormatMagickString(), GetMagickModule, GetVirtualIndexQueue(), GetVirtualPixels(), _PixelPacket::green, green_gamma, _XResourceInfo::image_info, LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::map_info, _Image::matte, MaxTextExtent, _PixelPacket::opacity, _XWindowInfo::pixel_info, PixelIntensity(), PixelIntensityToQuantum(), _XPixelInfo::pixels, _XResourceInfo::quantize_info, QuantumRange, ReadImage(), _PixelPacket::red, red_gamma, _Image::rows, ScaleQuantumToChar(), _ImageInfo::size, _Image::storage_class, _ImageInfo::texture, TraceEvent, XBlueGamma, XDitherImage(), XGammaPixel, XGreenGamma, XPixelIntensity(), and XRedGamma.
Referenced by XMakeImage().
| MagickExport void XMakeMagnifyImage | ( | Display * | display, | |
| XWindows * | windows | |||
| ) |
Definition at line 7006 of file xwindow.c.
References _XWindowInfo::annotate_context, _XPixelInfo::background_color, BlueChannel, CMYKColorspace, _MagickPixelPacket::colorspace, ConcatenateColorComponent(), ConcatenateMagickString(), _XWindowInfo::data, _XWindowInfo::depth, _Image::exception, _XWindowInfo::font_info, _XPixelInfo::foreground_color, FormatMagickString(), GetColorTuple(), GetMagickModule, GetOneVirtualMagickPixel(), GreenChannel, _RectangleInfo::height, _XWindowInfo::height, _XWindowInfo::highlight_context, _XWindowInfo::id, _XWindowInfo::image, _XWindows::image, IndexChannel, LogMagickEvent(), MagickFalse, MagickTrue, _XWindows::magnify, _MagickPixelPacket::matte, MaxTextExtent, _XWindowInfo::name, OpacityChannel, _XWindowInfo::pixel_info, _XWindowInfo::pixmap, QueryMagickColorname(), RedChannel, SVGCompliance, Swap, TraceEvent, _RectangleInfo::width, _XWindowInfo::width, _RectangleInfo::x, _XWindowInfo::x, X11Compliance, XDrawImageString, XDrawRectangle, XFillRectangle, XFree, _XWindowInfo::ximage, XPixelIntensity(), XPutImage, XRefreshWindow(), XSetWMIconName, XSetWMName, XStringListToTextProperty, _RectangleInfo::y, and _XWindowInfo::y.
| static MagickBooleanType XMakePixmap | ( | Display * | display, | |
| const XResourceInfo * | resource_info, | |||
| XWindowInfo * | window | |||
| ) | [static] |
Definition at line 7472 of file xwindow.c.
References _XWindowInfo::annotate_context, _XWindowInfo::busy_cursor, _XWindowInfo::cursor, _XWindowInfo::depth, GetMagickModule, _XWindowInfo::id, IsEventLogging(), LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::pixmap, _XWindowInfo::shared_memory, TraceEvent, _XWindowInfo::use_pixmap, X11Event, XCheckDefineCursor(), XCreatePixmap, XFlush, XFreePixmap, _XWindowInfo::ximage, and XPutImage.
Referenced by XMakeImage().
| MagickExport void XMakeStandardColormap | ( | Display * | display, | |
| XVisualInfo * | visual_info, | |||
| XResourceInfo * | resource_info, | |||
| Image * | image, | |||
| XStandardColormap * | map_info, | |||
| XPixelInfo * | pixel | |||
| ) |
Definition at line 7627 of file xwindow.c.
References AcquireImage(), AcquireQuantumMemory(), _XPixelInfo::background_color, _DiversityPacket::blue, _PixelPacket::blue, _XPixelInfo::border_color, _XResourceInfo::color_recovery, _XResourceInfo::colormap, _Image::colormap, _XPixelInfo::colors, _Image::colors, _Image::columns, _DiversityPacket::count, _XPixelInfo::depth_color, DestroyImage(), DirectClass, _QuantizeInfo::dither, DoBlue, DoGreen, DoRed, _Image::exception, _Image::filename, _XPixelInfo::foreground_color, GetAuthenticIndexQueue(), GetAuthenticPixels(), GetMagickModule, _DiversityPacket::green, _PixelPacket::green, _XPixelInfo::highlight_color, _DiversityPacket::index, IntensityCompare(), IsEventLogging(), LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _XResourceInfo::map_type, _Image::matte, _XPixelInfo::matte_color, MaxColormapSize, MaxNumberPens, _QuantizeInfo::number_colors, _XPixelInfo::pen_colors, _XPixelInfo::pixels, PopularityCompare(), PrivateColormap, _XResourceInfo::quantize_info, QuantizeImage(), QueueAuthenticPixels(), _DiversityPacket::red, _PixelPacket::red, RelinquishMagickMemory(), RemapImage(), ResourceLimitFatalError, _Image::rows, ScaleQuantumToShort(), ScaleXToQuantum(), SetImageStorageClass(), _XPixelInfo::shadow_color, SharedColormap, _Image::storage_class, SyncAuthenticPixels(), ThrowXWindowFatalException, TraceEvent, TransparentOpacity, _XPixelInfo::trough_color, X11Event, XAllocColor, XAllocColorCells, XBestPixel(), XBlueGamma, XCopyColormapAndFree, XCreateColormap, XDefaultColormap, XDefaultVisual, XFreeStandardColormap(), XGetMapInfo(), XGetPixelPacket(), XGreenGamma, XPixelIntensity(), XQueryColors, XRedGamma, XRootWindow, XStandardPixel, and XStoreColors.
| MagickExport void XMakeWindow | ( | Display * | display, | |
| Window | parent, | |||
| char ** | argv, | |||
| int | argc, | |||
| XClassHint * | class_hint, | |||
| XWMHints * | manager_hints, | |||
| XWindowInfo * | window_info | |||
| ) |
Definition at line 8235 of file xwindow.c.
References _XWindowInfo::attributes, _XWindowInfo::border_width, CopyMagickString(), _XWindowInfo::depth, _XWindowInfo::destroy, _XWindowInfo::flags, FormatMagickString(), _XWindowInfo::geometry, GetMagickModule, _XWindowInfo::height, _XWindowInfo::height_inc, HeightValue, _XWindowInfo::icon_geometry, _XWindowInfo::icon_name, _XWindowInfo::id, _XWindowInfo::image, _XWindowInfo::immutable, LogMagickEvent(), MagickFalse, _XWindowInfo::mask, MaxTextExtent, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, NewImageList(), NorthWestGravity, _XWindowInfo::screen, _XWindowInfo::shape, _XWindowInfo::shared_memory, ThrowXWindowFatalException, TraceEvent, _XWindowInfo::visual, _XWindowInfo::width, _XWindowInfo::width_inc, WidthValue, _XWindowInfo::x, XAllocSizeHints, XChangeWindowAttributes, XCheckTypedWindowEvent, XCreateWindow, XFree, XInternAtom, XReconfigureWMWindow, XServerFatalError, XSetWMProperties, XSetWMProtocols, XStringListToTextProperty, XValue, XWMGeometry, _XWindowInfo::y, and YValue.
| MagickExport MagickBooleanType XQueryColorDatabase | ( | const char * | target, | |
| XColor * | color | |||
| ) |
Definition at line 8553 of file xwindow.c.
References DoBlue, DoGreen, DoRed, MagickFalse, MagickTrue, ThrowXWindowFatalException, XDefaultColormap, XDefaultScreen, XOpenDisplay, XParseColor, and XServerError.
| MagickExport void XQueryPosition | ( | Display * | display, | |
| const Window | window, | |||
| int * | x, | |||
| int * | y | |||
| ) |
Definition at line 8633 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), TraceEvent, and XQueryPointer.
| MagickExport void XRefreshWindow | ( | Display * | display, | |
| const XWindowInfo * | window, | |||
| const XEvent * | event | |||
| ) |
Definition at line 8683 of file xwindow.c.
References _XWindowInfo::annotate_context, _XWindowInfo::depth, GetMagickModule, _XWindowInfo::height, _XWindowInfo::highlight_context, _XWindowInfo::id, LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::matte_pixmap, _XWindowInfo::pixmap, _XWindowInfo::shape, _XWindowInfo::shared_memory, TraceEvent, _XWindowInfo::width, _XWindowInfo::x, XCheckTypedWindowEvent, XCopyArea, XCopyPlane, XFlush, _XWindowInfo::ximage, XPutImage, XSetClipMask, XShapeCombineMask, and _XWindowInfo::y.
| MagickExport MagickBooleanType XRemoteCommand | ( | Display * | display, | |
| const char * | window, | |||
| const char * | filename | |||
| ) |
Definition at line 8798 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 * | display, | |
| const Window | window | |||
| ) |
Definition at line 8875 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, ThrowXWindowFatalException, TraceEvent, XChangeProperty, XCreatePixmap, XInternAtom, XServerError, and XSetCloseDownMode.
| static Window XSelectWindow | ( | Display * | display, | |
| RectangleInfo * | crop_info | |||
| ) | [static] |
Definition at line 8938 of file xwindow.c.
References GetMagickModule, _RectangleInfo::height, LogMagickEvent(), MagickFalse, MinimumCropArea, ThrowXWindowFatalException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, XAllowEvents, XBlackPixel, XCheckMaskEvent, XCreateGC, XDefaultColormap, XDefaultScreen, XDrawRectangle, XFreeCursor, XFreeGC, XGetSubwindow(), XGrabPointer, XMakeCursor(), XRootWindow, XServerError, XUngrabPointer, XWhitePixel, XWindowEvent, and _RectangleInfo::y.
Referenced by XGetWindowColor(), XImportImage(), and XWindowByID().
| MagickExport void XSetCursorState | ( | Display * | display, | |
| XWindows * | windows, | |||
| const MagickStatusType | state | |||
| ) |
Definition at line 9115 of file xwindow.c.
References _XWindowInfo::busy_cursor, _XWindows::command, _XWindowInfo::cursor, GetMagickModule, _XWindowInfo::id, _XWindows::image, _XWindows::info, LogMagickEvent(), MagickFalse, _XWindows::magnify, _XWindowInfo::mapped, _XWindows::pan, _XWindowInfo::screen, TraceEvent, _XWindows::widget, XCheckDefineCursor(), and XWithdrawWindow.
Definition at line 9171 of file xwindow.c.
References RelinquishMagickMemory().
Referenced by DestroyXResources(), XMagickProgressMonitor(), and XWarning().
| MagickExport void XUserPreferences | ( | XResourceInfo * | resource_info | ) |
Definition at line 9206 of file xwindow.c.
References _XResourceInfo::backdrop, _XResourceInfo::colormap, _XResourceInfo::confirm_edit, _XResourceInfo::confirm_exit, _XResourceInfo::display_warnings, _QuantizeInfo::dither, ExpandFilename(), FormatMagickString(), _XResourceInfo::gamma_correct, GetClientName(), MaxTextExtent, _XResourceInfo::quantize_info, SharedColormap, _XResourceInfo::undo_cache, _XResourceInfo::use_pixmap, X11_PREFERENCES_PATH, XrmGetStringDatabase, XrmPutFileDatabase, and XrmPutStringResource.
| static const char * XVisualClassName | ( | const int | visual_class | ) | [static] |
Definition at line 9292 of file xwindow.c.
Referenced by XBestVisualInfo(), XDisplayImageInfo(), and XInitializeWindows().
| MagickExport void XWarning | ( | const ExceptionType | magick_unusedwarning, | |
| const char * | reason, | |||
| const char * | description | |||
| ) |
Definition at line 9334 of file xwindow.c.
References ConcatenateMagickString(), CopyMagickString(), _XWindows::display, MaxTextExtent, XNoticeWidget(), and XSetWindows().
| MagickExport Window XWindowByID | ( | Display * | display, | |
| const Window | root_window, | |||
| const unsigned long | id | |||
| ) |
Definition at line 9381 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), TraceEvent, XFree, XQueryTree, XSelectWindow(), and XWindowByID().
| MagickExport Window XWindowByName | ( | Display * | display, | |
| const Window | root_window, | |||
| const char * | name | |||
| ) |
Definition at line 9459 of file xwindow.c.
References GetMagickModule, LocaleCompare(), LogMagickEvent(), TraceEvent, XFree, XGetWMName, XQueryTree, and XWindowByName().
| MagickExport Window XWindowByProperty | ( | Display * | display, | |
| const Window | window, | |||
| const Atom | property | |||
| ) |
Definition at line 9536 of file xwindow.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, TraceEvent, XFree, XGetWindowProperty, XQueryTree, and XWindowByProperty().
Referenced by XClientWindow(), XRemoteCommand(), and XWindowByProperty().
MagickRealType blue_gamma = 1.0 [static] |
Definition at line 195 of file xwindow.c.
Referenced by XGetPixelPacket(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
MagickRealType green_gamma = 1.0 [static] |
Definition at line 196 of file xwindow.c.
Referenced by XGetPixelPacket(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
MagickRealType red_gamma = 1.0 [static] |
Definition at line 197 of file xwindow.c.
Referenced by XGetPixelPacket(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
MagickBooleanType xerror_alert = MagickFalse [static] |
Definition at line 186 of file xwindow.c.
Referenced by XError(), and XMakeImage().
1.6.1