40 #if defined(MAGICKCORE_X11_DELEGATE)
43 #if defined(PRE_R6_ICCCM)
62 screen_format.depth=ximage->depth;
63 screen_format.bits_per_pixel=(int) ximage->bits_per_pixel;
64 display.byte_order=ximage->byte_order;
65 display.bitmap_unit=ximage->bitmap_unit;
66 display.bitmap_bit_order=ximage->bitmap_bit_order;
67 display.pixmap_format=(&screen_format);
69 created_ximage=
XCreateImage(&display,(Visual *) NULL,ximage->depth,
70 ximage->format,ximage->xoffset,(
char *) NULL,ximage->width,ximage->height,
71 ximage->bitmap_pad,ximage->bytes_per_line);
72 if (created_ximage == (XImage *) NULL)
74 target_ximage=(*ximage);
75 *ximage=(*created_ximage);
76 created_ximage->data=(
char *) NULL;
77 XDestroyImage(created_ximage);
78 ximage->red_mask=target_ximage.red_mask;
79 ximage->green_mask=target_ximage.green_mask;
80 ximage->blue_mask=target_ximage.blue_mask;
85 #if defined(PRE_R5_ICCCM)
115 return((
char *) NULL);
124 #if defined(PRE_R4_ICCCM)
144 unsigned int value_mask,XWindowChanges *values)
166 XStandardColormap **colormap,
int *count,Atom property)
169 return(XGetStandardColormap(display,window,*colormap,property));
173 Window **colormap_windows,
int *number_windows)
189 if (property == None)
196 XA_WINDOW,&actual_type,&actual_format,&number_items,&leftover,
197 (
unsigned char **) &data);
198 if (status != Success)
200 if ((actual_type != XA_WINDOW) || (actual_format != 32))
202 if (data != (Atom *) NULL)
203 XFree((
char *) data);
206 *colormap_windows=(Window *) data;
207 *number_windows=(int) number_items;
211 Status
XGetWMName(Display *display,Window window,XTextProperty *text_property)
216 if (
XFetchName(display,window,&window_name) == 0)
218 text_property->value=(
unsigned char *) window_name;
219 text_property->encoding=XA_STRING;
220 text_property->format=8;
221 text_property->nitems=strlen(window_name);
227 return(display->xdefaults);
234 void XSetWMIconName(Display *display,Window window,XTextProperty *property)
239 void XSetWMName(Display *display,Window window,XTextProperty *property)
245 XTextProperty *window_name,XTextProperty *icon_name,
char **argv,
246 int argc,XSizeHints *size_hints,XWMHints *manager_hints,
247 XClassHint *class_hint)
250 None,argv,argc,size_hints);
262 XChangeProperty(display,window,wm_protocols,XA_ATOM,32,PropModeReplace,
263 (
unsigned char *) protocols,count);
272 register unsigned int
279 for (i=0; i < (ssize_t) argc; i++)
280 number_bytes+=(
unsigned int) ((argv[i] ? strlen(argv[i]) : 0)+1);
281 protocol.encoding=XA_STRING;
285 protocol.nitems=number_bytes-1;
287 if (number_bytes <= 0)
290 sizeof(*protocol.value));
293 *protocol.value=
'\0';
301 if (buffer == (
char *) NULL)
303 protocol.value=(
unsigned char *) buffer;
304 for (i=0; i < (ssize_t) argc; i++)
315 buffer+=(strlen(argument)+1);
325 return(visual->visualid);
333 int XWMGeometry(Display *display,
int screen,
char *user_geometry,
334 char *default_geometry,
unsigned int border_width,XSizeHints *size_hints,
335 int *x,
int *y,
int *width,
int *height,
int *gravity)
340 status=XGeometry(display,screen,user_geometry,default_geometry,border_width,
341 0,0,0,0,x,y,width,height);
#define XrmGetFileDatabase
#define XrmDestroyDatabase
#define XVisualIDFromVisual
#define XAllocStandardColormap
#define XReconfigureWMWindow
#define XrmMergeDatabases
#define XrmCombineFileDatabase
MagickExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
#define XStringListToTextProperty
MagickExport size_t CopyMagickString(char *destination, const char *source, const size_t length)
#define XrmCombineDatabase
#define XGetWMColormapWindows
#define XSetLocaleModifiers
#define XGetWindowProperty
#define XSetStandardProperties
MagickExport void * AcquireMagickMemory(const size_t size)
#define XResourceManagerString