xwindow-private.h File Reference

#include "MagickCore/draw.h"
#include "MagickCore/exception.h"
#include "MagickCore/geometry.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/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

MagickPrivate Cursor XMakeCursor (Display *, Window, Colormap, char *, char *)
MagickPrivate int XCheckDefineCursor (Display *, Window, Cursor)
MagickPrivate MagickBooleanType XAnnotateImage (Display *, const XPixelInfo *, XAnnotateInfo *, Image *, ExceptionInfo *)
MagickPrivate MagickBooleanType XComponentGenesis (void)
MagickPrivate MagickBooleanType XDrawImage (Display *, const XPixelInfo *, XDrawInfo *, Image *, ExceptionInfo *)
MagickPrivate MagickBooleanType XGetWindowColor (Display *, XWindows *, char *, ExceptionInfo *)
MagickPrivate MagickBooleanType XMagickProgressMonitor (const char *, const MagickOffsetType, const MagickSizeType, void *)
MagickPrivate MagickBooleanType XMakeImage (Display *, const XResourceInfo *, XWindowInfo *, Image *, unsigned int, unsigned int, ExceptionInfo *)
MagickPrivate MagickBooleanType XQueryColorCompliance (const char *, XColor *)
MagickPrivate void XBestIconSize (Display *, XWindowInfo *, Image *)
MagickPrivate void XBestPixel (Display *, const Colormap, XColor *, unsigned int, XColor *)
MagickPrivate void XCheckRefreshWindows (Display *, XWindows *)
MagickPrivate void XClientMessage (Display *, const Window, const Atom, const Atom, const Time)
MagickPrivate void XComponentTerminus (void)
MagickPrivate void XConfigureImageColormap (Display *, XResourceInfo *, XWindows *, Image *, ExceptionInfo *)
MagickPrivate void XConstrainWindowPosition (Display *, XWindowInfo *)
MagickPrivate void XDelay (Display *, const size_t)
MagickPrivate void XDisplayImageInfo (Display *, const XResourceInfo *, XWindows *, Image *, Image *, ExceptionInfo *)
MagickPrivate void XDestroyWindowColors (Display *, Window)
MagickPrivate void XFreeResources (Display *, XVisualInfo *, XStandardColormap *, XPixelInfo *, XFontStruct *, XResourceInfo *, XWindowInfo *)
MagickPrivate void XFreeStandardColormap (Display *, const XVisualInfo *, XStandardColormap *, XPixelInfo *)
MagickPrivate void XHighlightEllipse (Display *, Window, GC, const RectangleInfo *)
MagickPrivate void XHighlightLine (Display *, Window, GC, const XSegment *)
MagickPrivate void XHighlightRectangle (Display *, Window, GC, const RectangleInfo *)
MagickPrivate void XGetAnnotateInfo (XAnnotateInfo *)
MagickPrivate void XGetPixelInfo (Display *, const XVisualInfo *, const XStandardColormap *, const XResourceInfo *, Image *, XPixelInfo *)
MagickPrivate void XGetMapInfo (const XVisualInfo *, const Colormap, XStandardColormap *)
MagickPrivate void XGetWindowInfo (Display *, XVisualInfo *, XStandardColormap *, XPixelInfo *, XFontStruct *, XResourceInfo *, XWindowInfo *)
MagickPrivate void XMakeMagnifyImage (Display *, XWindows *, ExceptionInfo *)
MagickPrivate void XMakeStandardColormap (Display *, XVisualInfo *, XResourceInfo *, Image *, XStandardColormap *, XPixelInfo *, ExceptionInfo *)
MagickPrivate void XMakeWindow (Display *, Window, char **, int, XClassHint *, XWMHints *, XWindowInfo *)
MagickPrivate void XQueryPosition (Display *, const Window, int *, int *)
MagickPrivate void XRefreshWindow (Display *, const XWindowInfo *, const XEvent *)
MagickPrivate void XSetCursorState (Display *, XWindows *, const MagickStatusType)
MagickPrivate void XUserPreferences (XResourceInfo *)
MagickPrivate void XWarning (const ExceptionType, const char *, const char *)
MagickPrivate Window XWindowByID (Display *, const Window, const size_t)
MagickPrivate Window XWindowByName (Display *, const Window, const char *)
MagickPrivate Window XWindowByProperty (Display *, const Window, const Atom)
MagickPrivate XFontStruct * XBestFont (Display *, const XResourceInfo *, const MagickBooleanType)
MagickPrivate XVisualInfo * XBestVisualInfo (Display *, XStandardColormap *, XResourceInfo *)
MagickPrivate XWindowsXInitializeWindows (Display *, XResourceInfo *)
MagickPrivate XWindows ** XSetWindows (XWindows *)
MagickExport char * XGetResourceClass (XrmDatabase, const char *, const char *, char *)
MagickExport char ** XGetResourceInstance (XrmDatabase, const char *, const char *, const char *)
MagickExport char *** XGetScreenDensity (Display *)
MagickExport int XError (Display *, XErrorEvent *)
MagickExport MagickBooleanType XRemoteCommand (Display *, const char *, const char *)
MagickExport void DestroyXResources (void)
MagickExport void XDestroyResourceInfo (XResourceInfo *)
MagickExport void XGetResourceInfo (const ImageInfo *, XrmDatabase, const char *, XResourceInfo *)
MagickExport void XRetainWindowColors (Display *, const Window)
MagickExport XrmDatabase XGetResourceDatabase (Display *, const char *)
static double XPixelIntensity (const XColor *pixel)
MagickPrivate MagickBooleanType XRenderImage (Image *, const DrawInfo *, const PointInfo *, TypeMetric *, ExceptionInfo *)

Define Documentation

#define klass   class
#define MaxIconSize   96

Referenced by XBestIconSize().

#define MaxNumberFonts   11
#define MaxNumberPens   11
#define MaxXWindows   12

Referenced by DestroyXResources().

#define ThrowXWindowException ( severity,
tag,
context   ) 
Value:
{ \
  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 FontToList(), XBestFont(), XBestIconSize(), XBestPixel(), XBestVisualInfo(), XDestroyWindowColors(), XGetPixelInfo(), XGetResourceInfo(), XGetWindowImage(), XImportImage(), XMakeCursor(), XQueryColorCompliance(), XRemoteCommand(), XRenderImage(), XRetainWindowColors(), and XSelectWindow().

#define ThrowXWindowFatalException ( severity,
tag,
context   ) 
Value:
{ \
   ThrowXWindowException(severity,tag,context); \
  _exit(1); \
}

Referenced by XCommandWidget(), XGetPixelInfo(), XInitializeWindows(), XMakeStandardColormap(), and XMakeWindow().


Typedef Documentation

typedef struct _XAnnotateInfo XAnnotateInfo
typedef struct _XDrawInfo XDrawInfo
typedef struct _XPixelInfo XPixelInfo
typedef struct _XResourceInfo XResourceInfo
typedef struct _XWindowInfo XWindowInfo
typedef struct _XWindows XWindows

Enumeration Type Documentation

Enumerator:
ForegroundStencil 
BackgroundStencil 
OpaqueStencil 
TransparentStencil 
Enumerator:
UndefinedElement 
PointElement 
LineElement 
RectangleElement 
FillRectangleElement 
CircleElement 
FillCircleElement 
EllipseElement 
FillEllipseElement 
PolygonElement 
FillPolygonElement 
ColorElement 
MatteElement 
TextElement 
ImageElement 
Enumerator:
UndefinedColormap 
PrivateColormap 
SharedColormap 
enum XState
Enumerator:
DefaultState 
EscapeState 
ExitState 
FormerImageState 
ModifierState 
MontageImageState 
NextImageState 
RetainColorsState 
SuspendTime 
UpdateConfigurationState 
UpdateRegionState 

Function Documentation

MagickExport void DestroyXResources ( void   ) 

Referenced by XComponentTerminus().

MagickPrivate MagickBooleanType XAnnotateImage ( Display *  ,
const XPixelInfo ,
XAnnotateInfo ,
Image ,
ExceptionInfo  
)

Referenced by XRenderImage().

MagickPrivate XFontStruct* XBestFont ( Display *  ,
const XResourceInfo ,
const   MagickBooleanType 
)
MagickPrivate void XBestIconSize ( Display *  ,
XWindowInfo ,
Image  
)
MagickPrivate void XBestPixel ( Display *  ,
const   Colormap,
XColor *  ,
unsigned int  ,
XColor *   
)
MagickPrivate XVisualInfo* XBestVisualInfo ( Display *  ,
XStandardColormap *  ,
XResourceInfo  
)
MagickPrivate int XCheckDefineCursor ( Display *  ,
Window  ,
Cursor   
)
MagickPrivate void XCheckRefreshWindows ( Display *  ,
XWindows  
)
MagickPrivate void XClientMessage ( Display *  ,
const   Window,
const   Atom,
const   Atom,
const   Time 
)

Referenced by XConfigureImageColormap().

MagickPrivate MagickBooleanType XComponentGenesis ( void   ) 

Referenced by MagickCoreGenesis().

MagickPrivate void XComponentTerminus ( void   ) 

Referenced by MagickCoreTerminus().

MagickPrivate void XConfigureImageColormap ( Display *  ,
XResourceInfo ,
XWindows ,
Image ,
ExceptionInfo  
)
MagickPrivate void XConstrainWindowPosition ( Display *  ,
XWindowInfo  
)
MagickPrivate void XDelay ( Display *  ,
const   size_t 
)
MagickExport void XDestroyResourceInfo ( XResourceInfo  ) 
MagickPrivate void XDestroyWindowColors ( Display *  ,
Window   
)
MagickPrivate void XDisplayImageInfo ( Display *  ,
const XResourceInfo ,
XWindows ,
Image ,
Image ,
ExceptionInfo  
)
MagickPrivate MagickBooleanType XDrawImage ( Display *  ,
const XPixelInfo ,
XDrawInfo ,
Image ,
ExceptionInfo  
)
MagickExport int XError ( Display *  ,
XErrorEvent *   
)
MagickPrivate void XFreeResources ( Display *  ,
XVisualInfo *  ,
XStandardColormap *  ,
XPixelInfo ,
XFontStruct *  ,
XResourceInfo ,
XWindowInfo  
)

Referenced by XRenderImage().

MagickPrivate void XFreeStandardColormap ( Display *  ,
const XVisualInfo *  ,
XStandardColormap *  ,
XPixelInfo  
)
MagickPrivate void XGetAnnotateInfo ( XAnnotateInfo  ) 

Referenced by XRenderImage().

MagickPrivate void XGetMapInfo ( const XVisualInfo *  ,
const   Colormap,
XStandardColormap *   
)
MagickPrivate void XGetPixelInfo ( Display *  ,
const XVisualInfo *  ,
const XStandardColormap *  ,
const XResourceInfo ,
Image ,
XPixelInfo  
)
MagickExport char* XGetResourceClass ( XrmDatabase  ,
const char *  ,
const char *  ,
char *   
)

Referenced by XGetResourceInfo().

MagickExport XrmDatabase XGetResourceDatabase ( Display *  ,
const char *   
)
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 *   ) 
MagickPrivate MagickBooleanType XGetWindowColor ( Display *  ,
XWindows ,
char *  ,
ExceptionInfo  
)

Referenced by XColorBrowserWidget().

MagickPrivate void XGetWindowInfo ( Display *  ,
XVisualInfo *  ,
XStandardColormap *  ,
XPixelInfo ,
XFontStruct *  ,
XResourceInfo ,
XWindowInfo  
)
MagickPrivate void XHighlightEllipse ( Display *  ,
Window  ,
GC  ,
const RectangleInfo  
)
MagickPrivate void XHighlightLine ( Display *  ,
Window  ,
GC  ,
const XSegment *   
)
MagickPrivate void XHighlightRectangle ( Display *  ,
Window  ,
GC  ,
const RectangleInfo  
)
MagickPrivate XWindows* XInitializeWindows ( Display *  ,
XResourceInfo  
)
MagickPrivate MagickBooleanType XMagickProgressMonitor ( const char *  ,
const   MagickOffsetType,
const   MagickSizeType,
void *   
)

Referenced by XGetResourceInfo().

MagickPrivate Cursor XMakeCursor ( Display *  ,
Window  ,
Colormap  ,
char *  ,
char *   
)
MagickPrivate MagickBooleanType XMakeImage ( Display *  ,
const XResourceInfo ,
XWindowInfo ,
Image ,
unsigned int  ,
unsigned int  ,
ExceptionInfo  
)
MagickPrivate void XMakeMagnifyImage ( Display *  ,
XWindows ,
ExceptionInfo  
)

Referenced by XScreenEvent().

MagickPrivate void XMakeStandardColormap ( Display *  ,
XVisualInfo *  ,
XResourceInfo ,
Image ,
XStandardColormap *  ,
XPixelInfo ,
ExceptionInfo  
)

Referenced by XConfigureImageColormap().

MagickPrivate void XMakeWindow ( Display *  ,
Window  ,
char **  ,
int  ,
XClassHint *  ,
XWMHints *  ,
XWindowInfo  
)
static double XPixelIntensity ( const XColor *  pixel  )  [inline, static]
MagickPrivate MagickBooleanType XQueryColorCompliance ( const char *  ,
XColor *   
)
MagickPrivate void XQueryPosition ( Display *  ,
const   Window,
int *  ,
int *   
)

Referenced by XMenuWidget().

MagickPrivate void XRefreshWindow ( Display *  ,
const XWindowInfo ,
const XEvent *   
)
MagickExport MagickBooleanType XRemoteCommand ( Display *  ,
const char *  ,
const char *   
)
MagickPrivate MagickBooleanType XRenderImage ( Image ,
const DrawInfo ,
const PointInfo ,
TypeMetric ,
ExceptionInfo  
)

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 *  ,
const   Window 
)
MagickPrivate void XSetCursorState ( Display *  ,
XWindows ,
const   MagickStatusType 
)
MagickPrivate XWindows* * XSetWindows ( XWindows  ) 
MagickPrivate void XUserPreferences ( XResourceInfo  ) 

Referenced by XPreferencesWidget().

MagickPrivate void XWarning ( const   ExceptionType,
const char *  ,
const char *   
)
MagickPrivate Window XWindowByID ( Display *  ,
const   Window,
const   size_t 
)
MagickPrivate Window XWindowByName ( Display *  ,
const   Window,
const char *   
)
MagickPrivate Window XWindowByProperty ( Display *  ,
const   Window,
const   Atom 
)

Generated on 10 Feb 2020 for MagickCore by  doxygen 1.6.1