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);
279 extern void jwxyz_flush_context (Display *);
281 extern Window XRootWindow (Display *, int screen);
282 extern Screen *XDefaultScreenOfDisplay (Display *);
283 extern Visual *XDefaultVisualOfScreen (Screen *);
284 extern Display *XDisplayOfScreen (Screen *);
285 extern int XDisplayNumberOfScreen (Screen *);
286 extern int XScreenNumberOfScreen (Screen *);
287 extern int XDisplayWidth (Display *, int);
288 extern int XDisplayHeight (Display *, int);
290 extern int XDrawPoint (Display *, Drawable, GC, int x, int y);
291 extern int XDrawPoints (Display *, Drawable, GC, XPoint *, int n, int mode);
292 extern int XDrawSegments (Display *, Drawable, GC, XSegment *, int n);
294 extern GC XCreateGC (Display *, Drawable, unsigned long mask, XGCValues *);
295 extern int XChangeGC (Display *, GC, unsigned long mask, XGCValues *);
296 extern int XFreeGC (Display *, GC);
298 extern int XClearWindow (Display *, Window);
299 extern int XClearArea (Display *, Window, int x, int y, int w, int h,Bool exp);
300 extern int XSetWindowBackground (Display *, Window, unsigned long);
301 extern Status XGetWindowAttributes (Display *, Window, XWindowAttributes *);
302 extern Status XGetGeometry (Display *, Drawable, Window *root_ret,
303 int *x_ret, int *y_ret,
304 unsigned int *w_ret, unsigned int *h_ret,
305 unsigned int *bw_ret, unsigned int *depth_ret);
306 extern Status XAllocColor (Display *, Colormap, XColor *);
307 extern Status XAllocColorCells (Display *, Colormap, Bool contig,
308 unsigned long *pmret, unsigned int npl,
309 unsigned long *pxret, unsigned int npx);
310 extern int XStoreColors (Display *, Colormap, XColor *, int n);
311 extern int XStoreColor (Display *, Colormap, XColor *);
312 extern Status XParseColor(Display *, Colormap, const char *spec, XColor *ret);
313 extern Status XAllocNamedColor (Display *, Colormap, char *name,
314 XColor *screen_ret, XColor *exact_ret);
315 extern int XQueryColor (Display *, Colormap, XColor *);
316 extern int XQueryColors(Display *, Colormap colormap, XColor *, int ncolors);
318 extern int XSetForeground (Display *, GC, unsigned long);
319 extern int XSetBackground (Display *, GC, unsigned long);
320 extern int XSetFunction (Display *, GC, int);
321 extern int XSetSubwindowMode (Display *, GC, int);
322 extern int XSetLineAttributes (Display *, GC, unsigned int line_width,
323 int line_style, int cap_style, int join_style);
324 extern int XSetClipMask (Display *, GC, Pixmap);
325 extern int XSetClipOrigin (Display *, GC, int x, int y);
326 extern int jwxyz_XSetAlphaAllowed (Display *, GC, Bool);
327 extern int jwxyz_XSetAntiAliasing (Display *, GC, Bool);
329 extern int XFlush (Display *);
330 extern int XSync (Display *, Bool);
331 extern int XFreeColors (Display *, Colormap, unsigned long *px, int n,
332 unsigned long planes);
333 extern int XFillPolygon (Display *, Drawable, GC,
334 XPoint * points, int npoints, int shape, int mode);
335 extern int XCopyArea (Display *, Drawable src, Drawable dest, GC,
336 int src_x, int src_y,
337 unsigned int width, unsigned int height,
338 int dest_x, int dest_y);
339 extern int XCopyPlane (Display *, Drawable, Drawable, GC,
340 int src_x, int src_y,
341 unsigned width, int height,
342 int dest_x, int dest_y,
343 unsigned long plane);
345 extern int XDrawLine (Display *, Drawable, GC, int x1, int y1, int x2, int y2);
346 extern int XDrawLines (Display *, Drawable, GC, XPoint *, int n, int mode);
347 extern int XDrawArc (Display *, Drawable, GC, int x, int y,
348 unsigned int width, unsigned int height,
349 int angle1, int angle2);
350 extern int XFillArc (Display *, Drawable, GC, int x, int y,
351 unsigned int width, unsigned int height,
352 int angle1, int angle2);
353 extern int XDrawArcs (Display *, Drawable, GC, XArc *arcs, int narcs);
354 extern int XFillArcs (Display *, Drawable, GC, XArc *arcs, int narcs);
355 extern int XDrawRectangle (Display *, Drawable, GC, int x, int y,
356 unsigned int width, unsigned int height);
357 extern int XFillRectangle (Display *, Drawable, GC, int x, int y,
358 unsigned int width, unsigned int height);
359 extern int XFillRectangles (Display *, Drawable, GC, XRectangle *, int n);
361 extern int XDrawString (Display *, Drawable, GC, int x, int y, const char *,
363 extern int XDrawImageString (Display *, Drawable, GC, int x, int y,
364 const char *, int len);
366 extern Bool XQueryPointer (Display *, Window, Window *root_ret,
368 int *root_x_ret, int *root_y_ret,
369 int *win_x_ret, int *win_y_ret,
370 unsigned int *mask_ret);
371 extern int XLookupString (XKeyEvent *, char *ret, int size, KeySym *ks_ret,
373 extern KeySym XKeycodeToKeysym (Display *, KeyCode, int index);
375 extern Status XInitImage (XImage *);
376 extern XImage *XCreateImage (Display *, Visual *, unsigned int depth,
377 int format, int offset, char *data,
378 unsigned int width, unsigned int height,
379 int bitmap_pad, int bytes_per_line);
380 extern XImage *XSubImage (XImage *, int x, int y,
381 unsigned int w, unsigned int h);
383 extern unsigned long XGetPixel (XImage *, int x, int y);
384 extern int XPutPixel (XImage *, int x, int y, unsigned long);
385 extern int XDestroyImage (XImage *);
386 extern int XPutImage (Display *, Drawable, GC, XImage *,
387 int src_x, int src_y, int dest_x, int dest_y,
388 unsigned int w, unsigned int h);
389 extern XImage *XGetImage (Display *, Drawable, int x, int y,
390 unsigned int w, unsigned int h,
391 unsigned long pm, int fmt);
392 extern Pixmap XCreatePixmapFromBitmapData (Display *, Drawable,
394 unsigned int w, unsigned int h,
398 extern XPixmapFormatValues *XListPixmapFormats (Display *, int *count_ret);
400 extern void jwxyz_draw_NSImage_or_CGImage (Display *, Drawable,
401 Bool nsimg_p, void *NSImage_arg,
402 XRectangle *geom_ret,
405 extern int XSetGraphicsExposures (Display *, GC, Bool);
406 extern Bool XTranslateCoordinates (Display *, Window src_w, Window dest_w,
407 int src_x, int src_y,
408 int *dest_x_ret, int *dest_y_ret,
411 extern Font XLoadFont (Display *, const char *);
412 extern XFontStruct * XQueryFont (Display *, Font);
413 extern XFontStruct * XLoadQueryFont (Display *, const char *);
414 extern int XFreeFontInfo (char **names, XFontStruct *info, int n);
415 extern int XFreeFont (Display *, XFontStruct *);
416 extern int XUnloadFont (Display *, Font);
417 extern int XTextExtents (XFontStruct *, const char *, int length,
418 int *dir_ret, int *ascent_ret, int *descent_ret,
419 XCharStruct *overall_ret);
420 extern int XTextWidth (XFontStruct *, const char *, int length);
421 extern int XSetFont (Display *, GC, Font);
423 extern Pixmap XCreatePixmap (Display *, Drawable,
424 unsigned int width, unsigned int height,
426 extern int XFreePixmap (Display *, Pixmap);
429 extern XtAppContext XtDisplayToApplicationContext (Display *);
430 typedef void (*XtTimerCallbackProc) (XtPointer closure, XtIntervalId *);
431 typedef void (*XtInputCallbackProc) (XtPointer closure, int *fd, XtInputId *);
432 extern XtIntervalId XtAppAddTimeOut (XtAppContext, unsigned long usecs,
433 XtTimerCallbackProc, XtPointer closure);
434 extern void XtRemoveTimeOut (XtIntervalId);
435 extern XtInputId XtAppAddInput (XtAppContext, int fd, XtPointer flags,
436 XtInputCallbackProc, XtPointer closure);
437 extern void XtRemoveInput (XtInputId);
438 extern XtInputMask XtAppPending (XtAppContext);
439 extern void XtAppProcessEvent (XtAppContext, XtInputMask);
440 extern struct jwxyz_sources_data *display_sources_data (Display *);
442 // Some GLX stuff that also doesn't technically belong here...
443 // from XScreenSaverGLView.m
444 extern void glXSwapBuffers (Display *, Window);
445 extern void glXMakeCurrent (Display *, Window, GLXContext);
447 // also declared in utils/visual.h
448 extern int has_writable_cells (Screen *, Visual *);
449 extern int visual_depth (Screen *, Visual *);
450 extern int visual_cells (Screen *, Visual *);
451 extern int visual_class (Screen *, Visual *);
452 extern int get_bits_per_pixel (Display *, int);
454 // also declared in utils/grabclient.h
455 extern Bool use_subwindow_mode_p (Screen *, Window);
458 struct jwxyz_Visual {
459 VisualID visualid; /* visual id of this visual */
460 int class; /* class of screen (monochrome, etc.) */
461 unsigned long red_mask, green_mask, blue_mask; /* mask values */
462 int bits_per_rgb; /* log base 2 of distinct color values */
463 // int map_entries; /* color map entries */
466 struct jwxyz_XGCValues {
467 int function; /* logical operation */
469 unsigned long plane_mask;/* plane mask */
471 unsigned long foreground;/* foreground pixel */
472 unsigned long background;/* background pixel */
473 int line_width; /* line width */
475 int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
477 int cap_style; /* CapNotLast, CapButt, CapRound, CapProjecting */
478 int join_style; /* JoinMiter, JoinRound, JoinBevel */
480 int fill_style; /* FillSolid, FillTiled,
481 FillStippled, FillOpaeueStippled */
483 int fill_rule; /* EvenOddRule, WindingRule */
485 int arc_mode; /* ArcChord, ArcPieSlice */
486 Pixmap tile; /* tile pixmap for tiling operations */
487 Pixmap stipple; /* stipple 1 plane pixmap for stipping */
488 int ts_x_origin; /* offset for tile or stipple operations */
491 Font font; /* default text font for text operations */
492 int subwindow_mode; /* ClipByChildren, IncludeInferiors */
494 Bool graphics_exposures;/* boolean, should exposures be generated */
496 int clip_x_origin; /* origin for clipping */
498 Pixmap clip_mask; /* bitmap clipping; other calls for rects */
500 int dash_offset; /* patterned/dashed line information */
504 Bool alpha_allowed_p; /* jwxyz extension: whether pixel values may have
505 a non-opaque alpha component. */
506 Bool antialias_p; /* jwxyz extension: whether Quartz should draw
507 with antialiasing. */
510 struct jwxyz_XWindowAttributes {
511 int x, y; /* location of window */
512 int width, height; /* width and height of window */
513 int border_width; /* border width of window */
514 int depth; /* depth of window */
515 Visual *visual; /* the associated visual structure */
517 Window root; /* root of screen containing window */
518 int class; /* InputOutput, InputOnly*/
519 int bit_gravity; /* one of bit gravity values */
520 int win_gravity; /* one of the window gravity values */
521 int backing_store; /* NotUseful, WhenMapped, Always */
522 unsigned long backing_planes;/* planes to be preserved if possible */
523 unsigned long backing_pixel;/* value to be used when restoring planes */
524 Bool save_under; /* boolean, should bits under be saved? */
526 Colormap colormap; /* color map to be associated with window */
528 Bool map_installed; /* boolean, is color map currently installed*/
529 int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
530 long all_event_masks; /* set of events all people have interest in*/
531 long your_event_mask; /* my event mask */
532 long do_not_propagate_mask; /* set of events that should not propagate */
533 Bool override_redirect; /* boolean value for override-redirect */
535 Screen *screen; /* back pointer to correct screen */
538 struct jwxyz_XColor {
540 unsigned short red, green, blue;
541 char flags; /* do_red, do_green, do_blue */
545 struct jwxyz_XPoint {
549 struct jwxyz_XSegment {
550 short x1, y1, x2, y2;
553 struct jwxyz_XRectangle {
555 unsigned short width, height;
560 unsigned short width, height;
561 short angle1, angle2;
565 struct jwxyz_XrmOptionDescRec {
572 struct jwxyz_XAnyEvent {
575 unsigned long serial;
582 struct jwxyz_XKeyEvent {
585 unsigned long serial;
596 unsigned int keycode;
602 struct jwxyz_XButtonEvent {
605 unsigned long serial;
624 struct jwxyz_XMotionEvent {
627 unsigned long serial;
650 XButtonEvent xbutton;
651 XMotionEvent xmotion;
654 struct jwxyz_XImage {
655 int width, height; /* size of image */
656 int xoffset; /* number of pixels offset in X direction */
657 int format; /* XYBitmap, XYPixmap, ZPixmap */
658 char *data; /* pointer to image data */
659 int byte_order; /* data byte order, LSBFirst, MSBFirst */
660 int bitmap_unit; /* quant. of scanline 8, 16, 32 */
661 int bitmap_bit_order; /* LSBFirst, MSBFirst */
662 int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
663 int depth; /* depth of image */
664 int bytes_per_line; /* accelarator to next line */
665 int bits_per_pixel; /* bits per pixel (ZPixmap) */
666 unsigned long red_mask; /* bits in z arrangment */
667 unsigned long green_mask;
668 unsigned long blue_mask;
669 // XPointer obdata; /* hook for the object routines to hang on */
670 struct funcs { /* image manipulation routines */
672 XImage *(*create_image)(
673 Display* /* display */,
674 Visual* /* visual */,
675 unsigned int /* depth */,
679 unsigned int /* width */,
680 unsigned int /* height */,
681 int /* bitmap_pad */,
682 int /* bytes_per_line */);
683 int (*destroy_image) (XImage *);
685 unsigned long (*get_pixel) (XImage *, int, int);
686 int (*put_pixel) (XImage *, int, int, unsigned long);
688 XImage *(*sub_image) (XImage *, int, int, unsigned int, unsigned int);
689 int (*add_pixel) (XImage *, long);
694 struct jwxyz_XCharStruct {
695 short lbearing; /* origin to left edge of raster */
696 short rbearing; /* origin to right edge of raster */
697 short width; /* advance to next char's origin */
698 short ascent; /* baseline to top edge of raster */
699 short descent; /* baseline to bottom edge of raster */
701 unsigned short attributes; /* per char flags (not predefined) */
705 struct jwxyz_XFontStruct {
707 XExtData *ext_data; /* hook for extension to hang data */
709 Font fid; /* Font id for this font */
711 unsigned direction; /* hint about direction the font is painted */
713 unsigned min_char_or_byte2; /* first character */
714 unsigned max_char_or_byte2; /* last character */
716 unsigned min_byte1; /* first row that exists */
717 unsigned max_byte1; /* last row that exists */
718 Bool all_chars_exist; /* flag if all characters have non-zero size*/
720 unsigned default_char; /* char to print for undefined character */
722 int n_properties; /* how many properties there are */
723 XFontProp *properties; /* pointer to array of additional properties*/
725 XCharStruct min_bounds; /* minimum bounds over all existing char*/
726 XCharStruct max_bounds; /* maximum bounds over all existing char*/
727 XCharStruct *per_char; /* first_char to last_char information */
728 int ascent; /* log. extent above baseline for spacing */
729 int descent; /* log. descent below baseline for spacing */
732 struct jwxyz_XComposeStatus {
736 struct jwxyz_XPixmapFormatValues {
742 #endif /* __JWXYZ_H__ */