xwindow.c File Reference

#include "MagickCore/studio.h"
#include "MagickCore/animate.h"
#include "MagickCore/artifact.h"
#include "MagickCore/blob.h"
#include "MagickCore/cache.h"
#include "MagickCore/client.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colormap.h"
#include "MagickCore/composite.h"
#include "MagickCore/constitute.h"
#include "MagickCore/display.h"
#include "MagickCore/distort.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/identify.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/locale_.h"
#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/quantize.h"
#include "MagickCore/quantum.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/resize.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/transform.h"
#include "MagickCore/transform-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/widget.h"
#include "MagickCore/widget-private.h"
#include "MagickCore/xwindow.h"
#include "MagickCore/xwindow-private.h"
#include "MagickCore/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>

Data Structures

struct  _DiversityPacket

Defines

#define XBlueGamma(color)
#define XGammaPacket(map, color)
#define XGammaPixel(image, 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 *, ExceptionInfo *)
static void XMakeImageMSBFirst (const XResourceInfo *, const XWindowInfo *, Image *, XImage *, XImage *, ExceptionInfo *)
static Window XSelectWindow (Display *, RectangleInfo *)
MagickExport void DestroyXResources (void)
MagickPrivate MagickBooleanType XAnnotateImage (Display *display, const XPixelInfo *pixel, XAnnotateInfo *annotate_info, Image *image, ExceptionInfo *exception)
static char ** FontToList (char *font)
MagickPrivate XFontStruct * XBestFont (Display *display, const XResourceInfo *resource_info, const MagickBooleanType text_font)
MagickPrivate void XBestIconSize (Display *display, XWindowInfo *window, Image *image)
MagickPrivate void XBestPixel (Display *display, const Colormap colormap, XColor *colors, unsigned int number_colors, XColor *color)
MagickPrivate XVisualInfo * XBestVisualInfo (Display *display, XStandardColormap *map_info, XResourceInfo *resource_info)
MagickPrivate int XCheckDefineCursor (Display *display, Window window, Cursor cursor)
MagickPrivate void XCheckRefreshWindows (Display *display, XWindows *windows)
MagickPrivate void XClientMessage (Display *display, const Window window, const Atom protocol, const Atom reason, const Time timestamp)
static Window XClientWindow (Display *display, Window target_window)
MagickPrivate void XComponentTerminus (void)
MagickPrivate void XConfigureImageColormap (Display *display, XResourceInfo *resource_info, XWindows *windows, Image *image, ExceptionInfo *exception)
MagickPrivate void XConstrainWindowPosition (Display *display, XWindowInfo *window_info)
MagickPrivate void XDelay (Display *display, const size_t milliseconds)
MagickExport void XDestroyResourceInfo (XResourceInfo *resource_info)
MagickPrivate void XDestroyWindowColors (Display *display, Window window)
MagickPrivate void XDisplayImageInfo (Display *display, const XResourceInfo *resource_info, XWindows *windows, Image *undo_image, Image *image, ExceptionInfo *exception)
static void XDitherImage (Image *image, XImage *ximage, ExceptionInfo *exception)
MagickPrivate MagickBooleanType XDrawImage (Display *display, const XPixelInfo *pixel, XDrawInfo *draw_info, Image *image, ExceptionInfo *exception)
MagickExport int XError (Display *display, XErrorEvent *error)
MagickPrivate void XFreeResources (Display *display, XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel, XFontStruct *font_info, XResourceInfo *resource_info, XWindowInfo *window_info)
MagickPrivate void XFreeStandardColormap (Display *display, const XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel)
MagickPrivate void XGetAnnotateInfo (XAnnotateInfo *annotate_info)
MagickPrivate void XGetMapInfo (const XVisualInfo *visual_info, const Colormap colormap, XStandardColormap *map_info)
MagickPrivate void XGetPixelInfo (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)
MagickPrivate MagickBooleanType XGetWindowColor (Display *display, XWindows *windows, char *name, ExceptionInfo *exception)
static ImageXGetWindowImage (Display *display, const Window window, const unsigned int borders, const unsigned int level, ExceptionInfo *exception)
MagickPrivate void XGetWindowInfo (Display *display, XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel, XFontStruct *font_info, XResourceInfo *resource_info, XWindowInfo *window)
MagickPrivate void XHighlightEllipse (Display *display, Window window, GC annotate_context, const RectangleInfo *highlight_info)
MagickPrivate void XHighlightLine (Display *display, Window window, GC annotate_context, const XSegment *highlight_info)
MagickPrivate void XHighlightRectangle (Display *display, Window window, GC annotate_context, const RectangleInfo *highlight_info)
MagickExport ImageXImportImage (const ImageInfo *image_info, XImportInfo *ximage_info, ExceptionInfo *exception)
MagickPrivate XWindowsXInitializeWindows (Display *display, XResourceInfo *resource_info)
MagickPrivate Cursor XMakeCursor (Display *display, Window window, Colormap colormap, char *background_color, char *foreground_color)
MagickPrivate MagickBooleanType XMakeImage (Display *display, const XResourceInfo *resource_info, XWindowInfo *window, Image *image, unsigned int width, unsigned int height, ExceptionInfo *exception)
MagickPrivate void XMakeMagnifyImage (Display *display, XWindows *windows, ExceptionInfo *exception)
static double 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 size_t x, const size_t scale)
MagickPrivate void XMakeStandardColormap (Display *display, XVisualInfo *visual_info, XResourceInfo *resource_info, Image *image, XStandardColormap *map_info, XPixelInfo *pixel, ExceptionInfo *exception)
MagickPrivate 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)
MagickPrivate MagickBooleanType XMagickProgressMonitor (const char *tag, const MagickOffsetType quantum, const MagickSizeType span, void *magick_unused(client_data))
MagickPrivate MagickBooleanType XQueryColorCompliance (const char *target, XColor *color)
MagickPrivate void XQueryPosition (Display *display, const Window window, int *x, int *y)
MagickPrivate void XRefreshWindow (Display *display, const XWindowInfo *window, const XEvent *event)
MagickExport MagickBooleanType XRemoteCommand (Display *display, const char *window, const char *filename)
MagickPrivate MagickBooleanType XRenderImage (Image *image, const DrawInfo *draw_info, const PointInfo *offset, TypeMetric *metrics, ExceptionInfo *exception)
MagickExport void XRetainWindowColors (Display *display, const Window window)
MagickPrivate void XSetCursorState (Display *display, XWindows *windows, const MagickStatusType state)
MagickPrivate XWindowsXSetWindows (XWindows *windows_info)
MagickPrivate void XUserPreferences (XResourceInfo *resource_info)
MagickPrivate void XWarning (const ExceptionType magick_unused(warning), const char *reason, const char *description)
MagickPrivate Window XWindowByID (Display *display, const Window root_window, const size_t id)
MagickPrivate Window XWindowByName (Display *display, const Window root_window, const char *name)
MagickPrivate Window XWindowByProperty (Display *display, const Window window, const Atom property)
MagickPrivate MagickBooleanType XComponentGenesis (void)
MagickExport void XGetImportInfo (XImportInfo *ximage_info)

Variables

static MagickBooleanType xerror_alert = MagickFalse
static double blue_gamma = 1.0
static double green_gamma = 1.0
static double red_gamma = 1.0

Define Documentation

#define AccentuateModulate   ScaleCharToQuantum(80)
#define CheckOverflowException ( length,
width,
height   )     (((height) != 0) && ((length)/((size_t) height) != ((size_t) width)))

Referenced by XMakeImage().

#define DepthModulate   ScaleCharToQuantum(185)
#define HighlightModulate   ScaleCharToQuantum(125)
#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 ShadowModulate   ScaleCharToQuantum(135)
#define TroughModulate   ScaleCharToQuantum(110)
#define XBlueGamma ( color   ) 
Value:
ClampToQuantum(blue_gamma == 1.0 ? (double) \
  (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) blue_gamma)* \
  QuantumRange)))

Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().

#define XFD_SET   fd_set

Referenced by MagickDelay().

#define XGammaPacket ( map,
color   ) 
Value:
(size_t) (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))

Referenced by XGetPixelInfo().

#define XGammaPixel ( image,
map,
color   ) 
Value:
(size_t) (map->base_pixel+ \
  ((ScaleQuantumToShort(XRedGamma(GetPixelRed(image,color)))*map->red_max/65535L)* \
    map->red_mult)+ \
  ((ScaleQuantumToShort(XGreenGamma(GetPixelGreen(image,color)))*map->green_max/65535L)* \
    map->green_mult)+ \
  ((ScaleQuantumToShort(XBlueGamma(GetPixelBlue(image,color)))*map->blue_max/65535L)* \
    map->blue_mult))

Referenced by XMakeImageLSBFirst(), and XMakeImageMSBFirst().

#define XGreenGamma ( color   ) 
Value:
ClampToQuantum(green_gamma == 1.0 ? (double) \
  (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) green_gamma)* \
  QuantumRange)))

Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().

#define XLIB_ILLEGAL_ACCESS   1
#define XRedGamma ( color   ) 
Value:
ClampToQuantum(red_gamma == 1.0 ? (double) \
  (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) red_gamma)* \
  QuantumRange)))

Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().

#define XStandardPixel ( map,
color   ) 
Value:
(size_t) (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))

Referenced by XGetPixelInfo(), and XMakeStandardColormap().

#define XVisualColormapSize ( visual_info   ) 
Value:
MagickMin((unsigned int) (\
  (visual_info->klass == TrueColor) || (visual_info->klass == DirectColor) ? \
   visual_info->red_mask | visual_info->green_mask | visual_info->blue_mask : \
   (unsigned long) visual_info->colormap_size),1UL << visual_info->depth)

Referenced by XBestVisualInfo().


Typedef Documentation


Enumeration Type Documentation

Enumerator:
DoRed 
DoGreen 
DoBlue 
DoMatte 

Function Documentation

MagickExport void DestroyXResources ( void   ) 
static double DiversityPixelIntensity ( const DiversityPacket pixel  )  [inline, static]
static char** FontToList ( char *  font  )  [static]
static const char* GetLocaleMonitorMessage ( const char *  text  )  [static]
static int IntensityCompare ( const void *  x,
const void *  y 
) [static]
static int PopularityCompare ( const void *  x,
const void *  y 
) [static]
static Quantum ScaleXToQuantum ( const size_t  x,
const size_t  scale 
) [inline, static]

References QuantumRange.

Referenced by XMakeStandardColormap().

MagickPrivate MagickBooleanType XAnnotateImage ( Display *  display,
const XPixelInfo pixel,
XAnnotateInfo annotate_info,
Image image,
ExceptionInfo exception 
)
MagickPrivate XFontStruct* XBestFont ( Display *  display,
const XResourceInfo resource_info,
const MagickBooleanType  text_font 
)
MagickPrivate void XBestIconSize ( Display *  display,
XWindowInfo window,
Image image 
)
MagickPrivate void XBestPixel ( Display *  display,
const Colormap  colormap,
XColor *  colors,
unsigned int  number_colors,
XColor *  color 
)
MagickPrivate XVisualInfo* XBestVisualInfo ( Display *  display,
XStandardColormap *  map_info,
XResourceInfo resource_info 
)
MagickPrivate int XCheckDefineCursor ( Display *  display,
Window  window,
Cursor  cursor 
)
MagickPrivate void XCheckRefreshWindows ( Display *  display,
XWindows windows 
)
MagickPrivate void XClientMessage ( Display *  display,
const Window  window,
const Atom  protocol,
const Atom  reason,
const Time  timestamp 
)

References MagickFalse.

static Window XClientWindow ( Display *  display,
Window  target_window 
) [static]
MagickPrivate MagickBooleanType XComponentGenesis ( void   ) 

References MagickTrue.

MagickPrivate void XComponentTerminus ( void   ) 

References DestroyXResources().

MagickPrivate void XConfigureImageColormap ( Display *  display,
XResourceInfo resource_info,
XWindows windows,
Image image,
ExceptionInfo exception 
)
MagickPrivate void XConstrainWindowPosition ( Display *  display,
XWindowInfo window_info 
)
MagickPrivate void XDelay ( Display *  display,
const size_t  milliseconds 
)

References MagickDelay().

MagickExport void XDestroyResourceInfo ( XResourceInfo resource_info  ) 
MagickPrivate void XDestroyWindowColors ( Display *  display,
Window  window 
)
MagickPrivate void XDisplayImageInfo ( Display *  display,
const XResourceInfo resource_info,
XWindows windows,
Image undo_image,
Image image,
ExceptionInfo exception 
)
static void XDitherImage ( Image image,
XImage *  ximage,
ExceptionInfo exception 
) [static]
MagickPrivate MagickBooleanType XDrawImage ( Display *  display,
const XPixelInfo pixel,
XDrawInfo draw_info,
Image image,
ExceptionInfo exception 
)
MagickExport int XError ( Display *  display,
XErrorEvent *  error 
)
MagickPrivate void XFreeResources ( Display *  display,
XVisualInfo *  visual_info,
XStandardColormap *  map_info,
XPixelInfo pixel,
XFontStruct *  font_info,
XResourceInfo resource_info,
XWindowInfo window_info 
)
MagickPrivate void XFreeStandardColormap ( Display *  display,
const XVisualInfo *  visual_info,
XStandardColormap *  map_info,
XPixelInfo pixel 
)
MagickPrivate void XGetAnnotateInfo ( XAnnotateInfo annotate_info  ) 
MagickExport void XGetImportInfo ( XImportInfo ximage_info  ) 
MagickPrivate void XGetMapInfo ( const XVisualInfo *  visual_info,
const Colormap  colormap,
XStandardColormap *  map_info 
)
MagickPrivate void XGetPixelInfo ( 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 
)

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, GetMagickModule, _XResourceInfo::gravity, _XResourceInfo::home_directory, _XResourceInfo::icon_geometry, _XResourceInfo::iconic, _XResourceInfo::image_geometry, _XResourceInfo::image_info, _XResourceInfo::immutable, IsStringTrue(), LocaleCompare(), LogMagickEvent(), MagickFalse, MagickGravityOptions, MagickPathExtent, MagickTrue, _XResourceInfo::magnify, _XResourceInfo::map_type, _XResourceInfo::matte_color, _XResourceInfo::name, OptionError, ParseCommandOption(), _XResourceInfo::pause, _XResourceInfo::pen_colors, PrivateColormap, _XResourceInfo::quantize_info, _XResourceInfo::quantum, _XResourceInfo::resource_database, SetImageInfoProgressMonitor(), SharedColormap, StringToLong(), StringToUnsignedLong(), _XResourceInfo::text_font, ThrowXWindowException, _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 
)
MagickExport char* XGetScreenDensity ( Display *  display  ) 
static Window XGetSubwindow ( Display *  display,
Window  window,
int  x,
int  y 
) [static]

Referenced by XSelectWindow().

MagickPrivate MagickBooleanType XGetWindowColor ( Display *  display,
XWindows windows,
char *  name,
ExceptionInfo exception 
)
static Image* XGetWindowImage ( Display *  display,
const Window  window,
const unsigned int  borders,
const unsigned int  level,
ExceptionInfo exception 
) [static]
MagickPrivate void XGetWindowInfo ( Display *  display,
XVisualInfo *  visual_info,
XStandardColormap *  map_info,
XPixelInfo pixel,
XFontStruct *  font_info,
XResourceInfo resource_info,
XWindowInfo window 
)

References AcquireCriticalMemory(), 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, _XWindowInfo::ximage, and _XWindowInfo::y.

MagickPrivate void XHighlightEllipse ( Display *  display,
Window  window,
GC  annotate_context,
const RectangleInfo highlight_info 
)
MagickPrivate void XHighlightLine ( Display *  display,
Window  window,
GC  annotate_context,
const XSegment *  highlight_info 
)
MagickPrivate void XHighlightRectangle ( Display *  display,
Window  window,
GC  annotate_context,
const RectangleInfo highlight_info 
)
MagickExport Image* XImportImage ( const ImageInfo image_info,
XImportInfo ximage_info,
ExceptionInfo exception 
)
MagickPrivate XWindows* XInitializeWindows ( Display *  display,
XResourceInfo resource_info 
)
MagickPrivate MagickBooleanType XMagickProgressMonitor ( const char *  tag,
const MagickOffsetType  quantum,
const MagickSizeType  span,
void *  magick_unusedclient_data 
)
MagickPrivate Cursor XMakeCursor ( Display *  display,
Window  window,
Colormap  colormap,
char *  background_color,
char *  foreground_color 
)
MagickPrivate MagickBooleanType XMakeImage ( Display *  display,
const XResourceInfo resource_info,
XWindowInfo window,
Image image,
unsigned int  width,
unsigned int  height,
ExceptionInfo exception 
)
static void XMakeImageLSBFirst ( const XResourceInfo resource_info,
const XWindowInfo window,
Image image,
XImage *  ximage,
XImage *  matte_image,
ExceptionInfo exception 
) [static]
static void XMakeImageMSBFirst ( const XResourceInfo resource_info,
const XWindowInfo window,
Image image,
XImage *  ximage,
XImage *  matte_image,
ExceptionInfo exception 
)
MagickPrivate void XMakeMagnifyImage ( Display *  display,
XWindows windows,
ExceptionInfo exception 
)
static MagickBooleanType XMakePixmap ( Display *  display,
const XResourceInfo resource_info,
XWindowInfo window 
) [static]
MagickPrivate void XMakeStandardColormap ( Display *  display,
XVisualInfo *  visual_info,
XResourceInfo resource_info,
Image image,
XStandardColormap *  map_info,
XPixelInfo pixel,
ExceptionInfo exception 
)

References AcquireAuthenticCacheView(), AcquireImage(), AcquireQuantumMemory(), _Image::alpha_trait, _XPixelInfo::background_color, _DiversityPacket::blue, _PixelInfo::blue, _XPixelInfo::border_color, ClampToQuantum(), _XResourceInfo::color_recovery, _XResourceInfo::colormap, _Image::colormap, Colormap, _XPixelInfo::colors, _Image::colors, _Image::columns, _DiversityPacket::count, _XPixelInfo::depth_color, DestroyCacheView(), DestroyImage(), DirectClass, _QuantizeInfo::dither_method, DoBlue, DoGreen, DoRed, _Image::filename, _XPixelInfo::foreground_color, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelIndex(), _DiversityPacket::green, _PixelInfo::green, _XPixelInfo::highlight_color, _DiversityPacket::index, IntensityCompare(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickFalse, MagickMax, MagickMin, MagickTrue, _XResourceInfo::map_type, _XPixelInfo::matte_color, MaxColormapSize, MaxNumberPens, NoDitherMethod, _QuantizeInfo::number_colors, _XPixelInfo::pen_colors, _XPixelInfo::pixels, PopularityCompare(), PrivateColormap, _XResourceInfo::quantize_info, QuantizeImage(), QueueAuthenticPixels(), _DiversityPacket::red, _PixelInfo::red, RelinquishMagickMemory(), RemapImage(), ResourceLimitFatalError, _Image::rows, ScaleQuantumToShort(), ScaleXToQuantum(), SetImageStorageClass(), SetPixelAlpha(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _XPixelInfo::shadow_color, SharedColormap, _Image::storage_class, SyncAuthenticPixels(), ThrowXWindowFatalException, TraceEvent, TransparentAlpha, _XPixelInfo::trough_color, UndefinedPixelTrait, X11Event, XBestPixel(), XBlueGamma, XFreeStandardColormap(), XGetMapInfo(), XGetPixelInfo(), XGreenGamma, XPixelIntensity(), XRedGamma, and XStandardPixel.

MagickPrivate void XMakeWindow ( Display *  display,
Window  parent,
char **  argv,
int  argc,
XClassHint *  class_hint,
XWMHints *  manager_hints,
XWindowInfo window_info 
)
MagickPrivate MagickBooleanType XQueryColorCompliance ( const char *  target,
XColor *  color 
)
MagickPrivate void XQueryPosition ( Display *  display,
const Window  window,
int *  x,
int *  y 
)
MagickPrivate void XRefreshWindow ( Display *  display,
const XWindowInfo window,
const XEvent *  event 
)
MagickExport MagickBooleanType XRemoteCommand ( Display *  display,
const char *  window,
const char *  filename 
)
MagickPrivate MagickBooleanType XRenderImage ( Image image,
const DrawInfo draw_info,
const PointInfo offset,
TypeMetric metrics,
ExceptionInfo exception 
)

References AcquireImageInfo(), AcquireString(), _DrawInfo::affine, _PixelInfo::alpha, _XPixelInfo::annotate_context, AnnotateEvent, _TypeMetric::ascent, _XResourceInfo::background_color, _PixelInfo::blue, _TypeMetric::bounds, ClampToQuantum(), 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, _PixelInfo::green, _TypeMetric::height, _XAnnotateInfo::height, _DrawInfo::interline_spacing, LogMagickEvent(), MagickEpsilon, MagickFalse, MagickPathExtent, MagickPI, MagickTrue, _TypeMetric::max_advance, _XPixelInfo::pen_color, _XPixelInfo::pixels, _TypeMetric::pixels_per_em, _DrawInfo::pointsize, PrivateColormap, _PixelInfo::red, _DrawInfo::render, ResourceLimitError, _AffineMatrix::rx, _AffineMatrix::ry, ScaleQuantumToShort(), _DrawInfo::server_name, _XAnnotateInfo::stencil, _AffineMatrix::sx, _AffineMatrix::sy, _DrawInfo::text, _XAnnotateInfo::text, ThrowXWindowException, TransparentAlpha, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _TypeMetric::width, _XAnnotateInfo::width, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, XAnnotateImage(), XBestFont(), XBestVisualInfo(), XError(), XFreeResources(), XGetAnnotateInfo(), XGetMapInfo(), XGetPixelInfo(), XGetResourceDatabase(), XGetResourceInfo(), XServerError, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.

Referenced by RenderX11().

MagickExport void XRetainWindowColors ( Display *  display,
const Window  window 
)
static Window XSelectWindow ( Display *  display,
RectangleInfo crop_info 
) [static]
MagickPrivate void XSetCursorState ( Display *  display,
XWindows windows,
const MagickStatusType  state 
)
MagickPrivate XWindows* XSetWindows ( XWindows windows_info  ) 
MagickPrivate void XUserPreferences ( XResourceInfo resource_info  ) 
static const char * XVisualClassName ( const int  visual_class  )  [static]
MagickPrivate void XWarning ( const ExceptionType   magick_unusedwarning,
const char *  reason,
const char *  description 
)
MagickPrivate Window XWindowByID ( Display *  display,
const Window  root_window,
const size_t  id 
)
MagickPrivate Window XWindowByName ( Display *  display,
const Window  root_window,
const char *  name 
)
MagickPrivate Window XWindowByProperty ( Display *  display,
const Window  window,
const Atom  property 
)

Variable Documentation

double blue_gamma = 1.0 [static]
double green_gamma = 1.0 [static]
double red_gamma = 1.0 [static]
MagickBooleanType xerror_alert = MagickFalse [static]

Referenced by XError(), and XMakeImage().


Generated on 16 Nov 2019 for MagickCore by  doxygen 1.6.1