1 /* xscreensaver, Copyright (c) 1991-2012 Jamie Zawinski <jwz@jwz.org>
3 * Permission to use, copy, modify, distribute, and sell this software and its
4 * documentation for any purpose is hereby granted without fee, provided that
5 * the above copyright notice appear in all copies and that both that
6 * copyright notice and this permission notice appear in supporting
7 * documentation. No representations are made about the suitability of this
8 * software for any purpose. It is provided "as is" without express or
14 But it's a bunch of function definitions that bear some resemblance to
15 Xlib and that do Cocoa-ish things that bear some resemblance to the
16 things that Xlib might have done.
22 extern void jwxyz_abort(const char *fmt, ...) __dead2;
23 #define abort() jwxyz_abort("abort in %s:%d", __FUNCTION__, __LINE__)
27 typedef void * XPointer;
28 typedef unsigned long Time;
29 typedef unsigned int KeySym;
30 typedef unsigned int KeyCode;
31 typedef unsigned int VisualID;
33 typedef struct jwxyz_Display Display;
34 typedef struct jwxyz_Screen Screen;
35 typedef struct jwxyz_Visual Visual;
36 typedef struct jwxyz_Drawable * Drawable;
37 typedef struct jwxyz_Colormap * Colormap;
38 typedef struct jwxyz_GC * GC;
39 typedef struct jwxyz_XColor XColor;
40 typedef struct jwxyz_XGCValues XGCValues;
41 typedef struct jwxyz_XPoint XPoint;
42 typedef struct jwxyz_XSegment XSegment;
43 typedef struct jwxyz_XRectangle XRectangle;
44 typedef struct jwxyz_XArc XArc;
45 typedef struct jwxyz_XWindowAttributes XWindowAttributes;
46 typedef struct jwxyz_XrmOptionDescRec XrmOptionDescRec;
47 typedef struct jwxyz_XrmDatabase * XrmDatabase;
48 typedef struct jwxyz_XImage XImage;
49 typedef struct jwxyz_XFontStruct XFontStruct;
50 typedef struct jwxyz_Font * Font;
51 typedef struct jwxyz_XCharStruct XCharStruct;
52 typedef struct jwxyz_XComposeStatus XComposeStatus;
53 typedef struct jwxyz_XPixmapFormatValues XPixmapFormatValues;
55 typedef union jwxyz_XEvent XEvent;
56 typedef struct jwxyz_XAnyEvent XAnyEvent;
57 typedef struct jwxyz_XKeyEvent XKeyEvent;
58 typedef struct jwxyz_XMotionEvent XMotionEvent;
59 typedef struct jwxyz_XButtonEvent XButtonEvent;
60 typedef XKeyEvent XKeyPressedEvent;
61 typedef XKeyEvent XKeyReleasedEvent;
62 typedef XMotionEvent XPointerMovedEvent;
63 typedef XButtonEvent XButtonPressedEvent;
64 typedef XButtonEvent XButtonReleasedEvent;
67 /* Not technically Xlib... */
68 typedef struct jwxyz_GLXContext * GLXContext;
69 typedef struct jwxyz_XtAppContext * XtAppContext;
70 typedef struct jwxyz_XtIntervalId * XtIntervalId;
71 typedef struct jwxyz_XtInputId * XtInputId;
72 typedef void * XtPointer;
73 typedef unsigned long XtInputMask;
74 #define XtInputReadMask (1L<<0)
75 #define XtInputWriteMask (1L<<1)
76 #define XtInputExceptMask (1L<<2)
79 #define XtIMAlternateInput 4
81 #define XtIMAll (XtIMXEvent | XtIMTimer | XtIMAlternateInput | XtIMSignal)
89 #define Window Drawable
90 #define Pixmap Drawable
92 #define XrmoptionNoArg 0
93 #define XrmoptionSepArg 1
95 #define CoordModeOrigin 0
96 #define CoordModePrevious 1
99 #define LineOnOffDash 1
100 #define LineDoubleDash 2
105 #define CapProjecting 3
113 #define FillStippled 2
114 #define FillOpaqueStippled 3
116 #define EvenOddRule 0
117 #define WindingRule 1
132 #define StaticColor 2
133 #define PseudoColor 3
135 #define DirectColor 5
141 #define DoGreen (1<<1)
142 #define DoBlue (1<<2)
144 #define GCFunction (1L<<0)
145 #define GCPlaneMask (1L<<1)
146 #define GCForeground (1L<<2)
147 #define GCBackground (1L<<3)
148 #define GCLineWidth (1L<<4)
149 #define GCLineStyle (1L<<5)
150 #define GCCapStyle (1L<<6)
151 #define GCJoinStyle (1L<<7)
152 #define GCFillStyle (1L<<8)
153 #define GCFillRule (1L<<9)
154 #define GCTile (1L<<10)
155 #define GCStipple (1L<<11)
156 #define GCTileStipXOrigin (1L<<12)
157 #define GCTileStipYOrigin (1L<<13)
158 #define GCFont (1L<<14)
159 #define GCSubwindowMode (1L<<15)
160 #define GCGraphicsExposures (1L<<16)
161 #define GCClipXOrigin (1L<<17)
162 #define GCClipYOrigin (1L<<18)
163 #define GCClipMask (1L<<19)
164 #define GCDashOffset (1L<<20)
165 #define GCDashList (1L<<21)
166 #define GCArcMode (1L<<22)
170 #define ButtonPress 4
171 #define ButtonRelease 5
172 #define MotionNotify 6
174 #define GraphicsExpose 13
176 #define VisibilityNotify 15
178 #define ClipByChildren 0
179 #define IncludeInferiors 1
181 #define KeyPressMask (1L<<0)
182 #define KeyReleaseMask (1L<<1)
183 #define ButtonPressMask (1L<<2)
184 #define ButtonReleaseMask (1L<<3)
185 #define PointerMotionMask (1L<<6)
193 #define ShiftMask (1<<0)
194 #define LockMask (1<<1)
195 #define ControlMask (1<<2)
196 #define Mod1Mask (1<<3)
197 #define Mod2Mask (1<<4)
198 #define Mod3Mask (1<<5)
199 #define Mod4Mask (1<<6)
200 #define Mod5Mask (1<<7)
201 #define Button1Mask (1<<8)
202 #define Button2Mask (1<<9)
203 #define Button3Mask (1<<10)
204 #define Button4Mask (1<<11)
205 #define Button5Mask (1<<12)
207 #define XK_Shift_L 0xFFE1
208 #define XK_Shift_R 0xFFE2
209 #define XK_Control_L 0xFFE3
210 #define XK_Control_R 0xFFE4
211 #define XK_Caps_Lock 0xFFE5
212 #define XK_Shift_Lock 0xFFE6
213 #define XK_Meta_L 0xFFE7
214 #define XK_Meta_R 0xFFE8
215 #define XK_Alt_L 0xFFE9
216 #define XK_Alt_R 0xFFEA
217 #define XK_Super_L 0xFFEB
218 #define XK_Super_R 0xFFEC
219 #define XK_Hyper_L 0xFFED
220 #define XK_Hyper_R 0xFFEE
222 #define XK_Home 0xFF50
223 #define XK_Left 0xFF51
225 #define XK_Right 0xFF53
226 #define XK_Down 0xFF54
227 #define XK_Prior 0xFF55
228 #define XK_Page_Up 0xFF55
229 #define XK_Next 0xFF56
230 #define XK_Page_Down 0xFF56
231 #define XK_End 0xFF57
232 #define XK_Begin 0xFF58
234 #define GXclear 0x0 /* 0 */
235 #define GXand 0x1 /* src AND dst */
236 // #define GXandReverse 0x2 /* src AND NOT dst */
237 #define GXcopy 0x3 /* src */
238 // #define GXandInverted 0x4 /* NOT src AND dst */
239 // #define GXnoop 0x5 /* dst */
240 #define GXxor 0x6 /* src XOR dst */
241 #define GXor 0x7 /* src OR dst */
242 // #define GXnor 0x8 /* NOT src AND NOT dst */
243 // #define GXequiv 0x9 /* NOT src XOR dst */
244 // #define GXinvert 0xa /* NOT dst */
245 // #define GXorReverse 0xb /* src OR NOT dst */
246 // #define GXcopyInverted 0xc /* NOT src */
247 // #define GXorInverted 0xd /* NOT src OR dst */
248 // #define GXnand 0xe /* NOT src OR NOT dst */
249 #define GXset 0xf /* 1 */
251 #define DefaultScreen(dpy) (0)
252 #define BlackPixelOfScreen(s) (0xFF000000)
253 #define WhitePixelOfScreen(s) (0xFFFFFFFF)
254 #define BlackPixel(dpy,n) BlackPixelOfScreen(0)
255 #define WhitePixel(dpy,n) WhitePixelOfScreen(0)
256 #define CellsOfScreen(s) (0x00FFFFFF)
257 #define XFree(x) free(x)
258 #define BitmapPad(dpy) (8)
259 #define BitmapBitOrder(dpy) (MSBFirst)
260 #define ImageByteOrder(dpy) (MSBFirst)
261 #define DisplayOfScreen XDisplayOfScreen
262 #define DefaultScreenOfDisplay XDefaultScreenOfDisplay
263 #define ScreenOfDisplay(dpy,n) DefaultScreenOfDisplay(dpy)
264 #define DefaultVisualOfScreen XDefaultVisualOfScreen
265 #define DefaultColormapOfScreen(s) (0)
266 #define RootWindow XRootWindow
267 #define RootWindowOfScreen(s) RootWindow(DisplayOfScreen(s),0)
268 #define DisplayWidth XDisplayWidth
269 #define DisplayHeight XDisplayHeight
270 #define XMaxRequestSize(dpy) (65535)
272 extern Display *jwxyz_make_display (void *nsview, void *cgc);
273 extern void jwxyz_free_display (Display *);
274 extern void *jwxyz_window_view (Window);
275 extern void jwxyz_window_resized (Display *, Window,
278 extern void jwxyz_mouse_moved (Display *, Window, int x, int y);
280 extern Window XRootWindow (Display *, int screen);
281 extern Screen *XDefaultScreenOfDisplay (Display *);
282 extern Visual *XDefaultVisualOfScreen (Screen *);
283 extern Display *XDisplayOfScreen (Screen *);
284 extern int XDisplayNumberOfScreen (Screen *);
285 extern int XScreenNumberOfScreen (Screen *);
286 extern int XDisplayWidth (Display *, int);
287 extern int XDisplayHeight (Display *, int);
289 extern int XDrawPoint (Display *, Drawable, GC, int x, int y);
290 extern int XDrawPoints (Display *, Drawable, GC, XPoint *, int n, int mode);
291 extern int XDrawSegments (Display *, Drawable, GC, XSegment *, int n);
293 extern GC XCreateGC (Display *, Drawable, unsigned long mask, XGCValues *);
294 extern int XChangeGC (Display *, GC, unsigned long mask, XGCValues *);
295 extern int XFreeGC (Display *, GC);
297 extern int XClearWindow (Display *, Window);
298 extern int XClearArea (Display *, Window, int x, int y, int w, int h,Bool exp);
299 extern int XSetWindowBackground (Display *, Window, unsigned long);
300 extern Status XGetWindowAttributes (Display *, Window, XWindowAttributes *);
301 extern Status XGetGeometry (Display *, Drawable, Window *root_ret,
302 int *x_ret, int *y_ret,
303 unsigned int *w_ret, unsigned int *h_ret,
304 unsigned int *bw_ret, unsigned int *depth_ret);
305 extern Status XAllocColor (Display *, Colormap, XColor *);
306 extern Status XAllocColorCells (Display *, Colormap, Bool contig,
307 unsigned long *pmret, unsigned int npl,
308 unsigned long *pxret, unsigned int npx);
309 extern int XStoreColors (Display *, Colormap, XColor *, int n);
310 extern int XStoreColor (Display *, Colormap, XColor *);
311 extern Status XParseColor(Display *, Colormap, const char *spec, XColor *ret);
312 extern Status XAllocNamedColor (Display *, Colormap, char *name,
313 XColor *screen_ret, XColor *exact_ret);
314 extern int XQueryColor (Display *, Colormap, XColor *);
315 extern int XQueryColors(Display *, Colormap colormap, XColor *, int ncolors);
317 extern int XSetForeground (Display *, GC, unsigned long);
318 extern int XSetBackground (Display *, GC, unsigned long);
319 extern int XSetFunction (Display *, GC, int);
320 extern int XSetSubwindowMode (Display *, GC, int);
321 extern int XSetLineAttributes (Display *, GC, unsigned int line_width,
322 int line_style, int cap_style, int join_style);
323 extern int XSetClipMask (Display *, GC, Pixmap);
324 extern int XSetClipOrigin (Display *, GC, int x, int y);
325 extern int jwxyz_XSetAlphaAllowed (Display *, GC, Bool);
326 extern int jwxyz_XSetAntiAliasing (Display *, GC, Bool);
328 extern int XFlush (Display *);
329 extern int XSync (Display *, Bool);
330 extern int XFreeColors (Display *, Colormap, unsigned long *px, int n,
331 unsigned long planes);
332 extern int XFillPolygon (Display *, Drawable, GC,
333 XPoint * points, int npoints, int shape, int mode);
334 extern int XCopyArea (Display *, Drawable src, Drawable dest, GC,
335 int src_x, int src_y,
336 unsigned int width, unsigned int height,
337 int dest_x, int dest_y);
338 extern int XCopyPlane (Display *, Drawable, Drawable, GC,
339 int src_x, int src_y,
340 unsigned width, int height,
341 int dest_x, int dest_y,
342 unsigned long plane);
344 extern int XDrawLine (Display *, Drawable, GC, int x1, int y1, int x2, int y2);
345 extern int XDrawLines (Display *, Drawable, GC, XPoint *, int n, int mode);
346 extern int XDrawArc (Display *, Drawable, GC, int x, int y,
347 unsigned int width, unsigned int height,
348 int angle1, int angle2);
349 extern int XFillArc (Display *, Drawable, GC, int x, int y,
350 unsigned int width, unsigned int height,
351 int angle1, int angle2);
352 extern int XDrawArcs (Display *, Drawable, GC, XArc *arcs, int narcs);
353 extern int XFillArcs (Display *, Drawable, GC, XArc *arcs, int narcs);
354 extern int XDrawRectangle (Display *, Drawable, GC, int x, int y,
355 unsigned int width, unsigned int height);
356 extern int XFillRectangle (Display *, Drawable, GC, int x, int y,
357 unsigned int width, unsigned int height);
358 extern int XFillRectangles (Display *, Drawable, GC, XRectangle *, int n);
360 extern int XDrawString (Display *, Drawable, GC, int x, int y, const char *,
362 extern int XDrawImageString (Display *, Drawable, GC, int x, int y,
363 const char *, int len);
365 extern Bool XQueryPointer (Display *, Window, Window *root_ret,
367 int *root_x_ret, int *root_y_ret,
368 int *win_x_ret, int *win_y_ret,
369 unsigned int *mask_ret);
370 extern int XLookupString (XKeyEvent *, char *ret, int size, KeySym *ks_ret,
372 extern KeySym XKeycodeToKeysym (Display *, KeyCode, int index);
374 extern Status XInitImage (XImage *);
375 extern XImage *XCreateImage (Display *, Visual *, unsigned int depth,
376 int format, int offset, char *data,
377 unsigned int width, unsigned int height,
378 int bitmap_pad, int bytes_per_line);
379 extern XImage *XSubImage (XImage *, int x, int y,
380 unsigned int w, unsigned int h);
382 extern unsigned long XGetPixel (XImage *, int x, int y);
383 extern int XPutPixel (XImage *, int x, int y, unsigned long);
384 extern int XDestroyImage (XImage *);
385 extern int XPutImage (Display *, Drawable, GC, XImage *,
386 int src_x, int src_y, int dest_x, int dest_y,
387 unsigned int w, unsigned int h);
388 extern XImage *XGetImage (Display *, Drawable, int x, int y,
389 unsigned int w, unsigned int h,
390 unsigned long pm, int fmt);
391 extern Pixmap XCreatePixmapFromBitmapData (Display *, Drawable,
393 unsigned int w, unsigned int h,
397 extern XPixmapFormatValues *XListPixmapFormats (Display *, int *count_ret);
399 extern void jwxyz_draw_NSImage_or_CGImage (Display *, Drawable,
400 Bool nsimg_p, void *NSImage_arg,
401 XRectangle *geom_ret,
404 extern int XSetGraphicsExposures (Display *, GC, Bool);
405 extern Bool XTranslateCoordinates (Display *, Window src_w, Window dest_w,
406 int src_x, int src_y,
407 int *dest_x_ret, int *dest_y_ret,
410 extern Font XLoadFont (Display *, const char *);
411 extern XFontStruct * XQueryFont (Display *, Font);
412 extern XFontStruct * XLoadQueryFont (Display *, const char *);
413 extern int XFreeFontInfo (char **names, XFontStruct *info, int n);
414 extern int XFreeFont (Display *, XFontStruct *);
415 extern int XUnloadFont (Display *, Font);
416 extern int XTextExtents (XFontStruct *, const char *, int length,
417 int *dir_ret, int *ascent_ret, int *descent_ret,
418 XCharStruct *overall_ret);
419 extern int XTextWidth (XFontStruct *, const char *, int length);
420 extern int XSetFont (Display *, GC, Font);
422 extern Pixmap XCreatePixmap (Display *, Drawable,
423 unsigned int width, unsigned int height,
425 extern int XFreePixmap (Display *, Pixmap);
428 extern XtAppContext XtDisplayToApplicationContext (Display *);
429 typedef void (*XtTimerCallbackProc) (XtPointer closure, XtIntervalId *);
430 typedef void (*XtInputCallbackProc) (XtPointer closure, int *fd, XtInputId *);
431 extern XtIntervalId XtAppAddTimeOut (XtAppContext, unsigned long usecs,
432 XtTimerCallbackProc, XtPointer closure);
433 extern void XtRemoveTimeOut (XtIntervalId);
434 extern XtInputId XtAppAddInput (XtAppContext, int fd, XtPointer flags,
435 XtInputCallbackProc, XtPointer closure);
436 extern void XtRemoveInput (XtInputId);
437 extern XtInputMask XtAppPending (XtAppContext);
438 extern void XtAppProcessEvent (XtAppContext, XtInputMask);
439 extern struct jwxyz_sources_data *display_sources_data (Display *);
441 // Some GLX stuff that also doesn't technically belong here...
442 // from XScreenSaverGLView.m
443 extern void glXSwapBuffers (Display *, Window);
444 extern void glXMakeCurrent (Display *, Window, GLXContext);
446 // also declared in utils/visual.h
447 extern int has_writable_cells (Screen *, Visual *);
448 extern int visual_depth (Screen *, Visual *);
449 extern int visual_cells (Screen *, Visual *);
450 extern int visual_class (Screen *, Visual *);
452 // also declared in utils/grabclient.h
453 extern Bool use_subwindow_mode_p (Screen *, Window);
456 struct jwxyz_Visual {
457 VisualID visualid; /* visual id of this visual */
458 int class; /* class of screen (monochrome, etc.) */
459 unsigned long red_mask, green_mask, blue_mask; /* mask values */
460 int bits_per_rgb; /* log base 2 of distinct color values */
461 // int map_entries; /* color map entries */
464 struct jwxyz_XGCValues {
465 int function; /* logical operation */
467 unsigned long plane_mask;/* plane mask */
469 unsigned long foreground;/* foreground pixel */
470 unsigned long background;/* background pixel */
471 int line_width; /* line width */
473 int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
475 int cap_style; /* CapNotLast, CapButt, CapRound, CapProjecting */
476 int join_style; /* JoinMiter, JoinRound, JoinBevel */
478 int fill_style; /* FillSolid, FillTiled,
479 FillStippled, FillOpaeueStippled */
481 int fill_rule; /* EvenOddRule, WindingRule */
483 int arc_mode; /* ArcChord, ArcPieSlice */
484 Pixmap tile; /* tile pixmap for tiling operations */
485 Pixmap stipple; /* stipple 1 plane pixmap for stipping */
486 int ts_x_origin; /* offset for tile or stipple operations */
489 Font font; /* default text font for text operations */
490 int subwindow_mode; /* ClipByChildren, IncludeInferiors */
492 Bool graphics_exposures;/* boolean, should exposures be generated */
494 int clip_x_origin; /* origin for clipping */
496 Pixmap clip_mask; /* bitmap clipping; other calls for rects */
498 int dash_offset; /* patterned/dashed line information */
502 Bool alpha_allowed_p; /* jwxyz extension: whether pixel values may have
503 a non-opaque alpha component. */
504 Bool antialias_p; /* jwxyz extension: whether Quartz should draw
505 with antialiasing. */
508 struct jwxyz_XWindowAttributes {
509 int x, y; /* location of window */
510 int width, height; /* width and height of window */
511 int border_width; /* border width of window */
512 int depth; /* depth of window */
513 Visual *visual; /* the associated visual structure */
515 Window root; /* root of screen containing window */
516 int class; /* InputOutput, InputOnly*/
517 int bit_gravity; /* one of bit gravity values */
518 int win_gravity; /* one of the window gravity values */
519 int backing_store; /* NotUseful, WhenMapped, Always */
520 unsigned long backing_planes;/* planes to be preserved if possible */
521 unsigned long backing_pixel;/* value to be used when restoring planes */
522 Bool save_under; /* boolean, should bits under be saved? */
524 Colormap colormap; /* color map to be associated with window */
526 Bool map_installed; /* boolean, is color map currently installed*/
527 int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
528 long all_event_masks; /* set of events all people have interest in*/
529 long your_event_mask; /* my event mask */
530 long do_not_propagate_mask; /* set of events that should not propagate */
531 Bool override_redirect; /* boolean value for override-redirect */
533 Screen *screen; /* back pointer to correct screen */
536 struct jwxyz_XColor {
538 unsigned short red, green, blue;
539 char flags; /* do_red, do_green, do_blue */
543 struct jwxyz_XPoint {
547 struct jwxyz_XSegment {
548 short x1, y1, x2, y2;
551 struct jwxyz_XRectangle {
553 unsigned short width, height;
558 unsigned short width, height;
559 short angle1, angle2;
563 struct jwxyz_XrmOptionDescRec {
570 struct jwxyz_XAnyEvent {
573 unsigned long serial;
580 struct jwxyz_XKeyEvent {
583 unsigned long serial;
594 unsigned int keycode;
600 struct jwxyz_XButtonEvent {
603 unsigned long serial;
622 struct jwxyz_XMotionEvent {
625 unsigned long serial;
648 XButtonEvent xbutton;
649 XMotionEvent xmotion;
652 struct jwxyz_XImage {
653 int width, height; /* size of image */
654 int xoffset; /* number of pixels offset in X direction */
655 int format; /* XYBitmap, XYPixmap, ZPixmap */
656 char *data; /* pointer to image data */
657 int byte_order; /* data byte order, LSBFirst, MSBFirst */
658 int bitmap_unit; /* quant. of scanline 8, 16, 32 */
659 int bitmap_bit_order; /* LSBFirst, MSBFirst */
660 int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
661 int depth; /* depth of image */
662 int bytes_per_line; /* accelarator to next line */
663 int bits_per_pixel; /* bits per pixel (ZPixmap) */
664 unsigned long red_mask; /* bits in z arrangment */
665 unsigned long green_mask;
666 unsigned long blue_mask;
667 // XPointer obdata; /* hook for the object routines to hang on */
668 struct funcs { /* image manipulation routines */
670 XImage *(*create_image)(
671 Display* /* display */,
672 Visual* /* visual */,
673 unsigned int /* depth */,
677 unsigned int /* width */,
678 unsigned int /* height */,
679 int /* bitmap_pad */,
680 int /* bytes_per_line */);
681 int (*destroy_image) (XImage *);
683 unsigned long (*get_pixel) (XImage *, int, int);
684 int (*put_pixel) (XImage *, int, int, unsigned long);
686 XImage *(*sub_image) (XImage *, int, int, unsigned int, unsigned int);
687 int (*add_pixel) (XImage *, long);
692 struct jwxyz_XCharStruct {
693 short lbearing; /* origin to left edge of raster */
694 short rbearing; /* origin to right edge of raster */
695 short width; /* advance to next char's origin */
696 short ascent; /* baseline to top edge of raster */
697 short descent; /* baseline to bottom edge of raster */
699 unsigned short attributes; /* per char flags (not predefined) */
703 struct jwxyz_XFontStruct {
705 XExtData *ext_data; /* hook for extension to hang data */
707 Font fid; /* Font id for this font */
709 unsigned direction; /* hint about direction the font is painted */
711 unsigned min_char_or_byte2; /* first character */
712 unsigned max_char_or_byte2; /* last character */
714 unsigned min_byte1; /* first row that exists */
715 unsigned max_byte1; /* last row that exists */
716 Bool all_chars_exist; /* flag if all characters have non-zero size*/
718 unsigned default_char; /* char to print for undefined character */
720 int n_properties; /* how many properties there are */
721 XFontProp *properties; /* pointer to array of additional properties*/
723 XCharStruct min_bounds; /* minimum bounds over all existing char*/
724 XCharStruct max_bounds; /* maximum bounds over all existing char*/
725 XCharStruct *per_char; /* first_char to last_char information */
726 int ascent; /* log. extent above baseline for spacing */
727 int descent; /* log. descent below baseline for spacing */
730 struct jwxyz_XComposeStatus {
734 struct jwxyz_XPixmapFormatValues {
740 #endif /* __JWXYZ_H__ */