1 
2 /*
3  * grGlyphs.h --
4  *
5  * 	Data structures to hold glyphs.
6  *
7  *     *********************************************************************
8  *     * Copyright (C) 1985, 1990 Regents of the University of California. *
9  *     * Permission to use, copy, modify, and distribute this              *
10  *     * software and its documentation for any purpose and without        *
11  *     * fee is hereby granted, provided that the above copyright          *
12  *     * notice appear in all copies.  The University of California        *
13  *     * makes no representations about the suitability of this            *
14  *     * software for any purpose.  It is provided "as is" without         *
15  *     * express or implied warranty.  Export of this software outside     *
16  *     * of the United States of America may require an export license.    *
17  *     *********************************************************************
18  *
19  *
20  * rcsid "$Header: /usr/cvsroot/magic-8.0/graphics/glyphs.h,v 1.1.1.1 2008/02/03 20:43:50 tim Exp $"
21  */
22 
23 #ifndef _GLYPHS_H
24 #define _GLYPHS_H
25 
26 #include "utils/geometry.h"
27 
28 /* data structures */
29 
30 typedef struct GR_GLY2 {
31     Point gr_origin;	/* The location of the origin of the glyph. */
32     int gr_xsize;	/* The width of the glyph. */
33     int gr_ysize;	/* The height of the glyph. */
34     ClientData gr_cache;/* Glyph cached source data.  Used by Tk/Tcl; 	*/
35 			/* without it, Tk will re-use the cursor memory	*/
36 			/* and cursors will get rearranged.		*/
37     void (*gr_free)();	/* Routine to call to free the cached data.	*/
38     int gr_pixels[1];	/* Will actually be as large an array as needed. */
39 } GrGlyph;
40 
41 typedef struct GR_GLY3
42 {
43     int gr_num;	   	   /* The number of glyphs in this record. */
44     GrGlyph *gr_glyph[1];  /* Will be big enough to hold as many glyphs as
45 			    * we have.
46 			    */
47 } GrGlyphs;
48 
49 /* procedures */
50 
51 extern void GrFreeGlyphs();
52 
53 /* global pointer to the set of window glyphs */
54 
55 extern GrGlyphs *windGlyphs;
56 
57 #endif /* _GLYPHS_H */
58