aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-03-28 05:23:45 +0000
committerRichard M. Stallman1993-03-28 05:23:45 +0000
commit4208730106e08bdf945c93d24bb7466ed0b6f87d (patch)
treef65a20a4a3642487464801570218d370c3bec280 /src
parent13bd51a56875cf28c2e7ef5f325392262c85ff7d (diff)
downloademacs-4208730106e08bdf945c93d24bb7466ed0b6f87d.tar.gz
emacs-4208730106e08bdf945c93d24bb7466ed0b6f87d.zip
(struct face): New fields pixmap_h, pixmap_w.
Field `font' is now a pointer.
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 38e988cb6da..a89e73120c9 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -27,28 +27,32 @@ extern int display_completed;
27struct face 27struct face
28 { 28 {
29 /* If this is non-zero, it is a GC we can use without modification 29 /* If this is non-zero, it is a GC we can use without modification
30 to represent this face. */ 30 to represent this face. */
31 GC gc; 31 GC gc;
32 32
33 /* Pixel value for foreground color. */ 33 /* Pixel value for foreground color. */
34 int foreground; 34 int foreground;
35 35
36 /* Pixel value for background color. */ 36 /* Pixel value for background color. */
37 int background; 37 int background;
38 38
39 /* Font used for this face */ 39 /* Font used for this face. */
40 XFontStruct font; 40 XFontStruct *font;
41 41
42 /* Background stipple or bitmap used for this face. */ 42 /* Background stipple or bitmap used for this face. */
43 Pixmap stipple; 43 Pixmap stipple;
44
45 /* Pixmap_depth. */
46 unsigned int pixmap_w, pixmap_h;
44 47
45 /* Whether or not to underline text in this face. */ 48 /* Whether or not to underline text in this face. */
46 char underline; 49 char underline;
47 }; 50 };
48 51
52/* Let's stop using this and get rid of it. */
49typedef struct face *FACE; 53typedef struct face *FACE;
50 54
51#define NORMAL_FACE ((FACE *) 0) 55#define NORMAL_FACE ((struct face *) 0)
52 56
53#define FACE_HAS_GC(f) ((f)->gc) 57#define FACE_HAS_GC(f) ((f)->gc)
54#define FACE_GC(f) ((f)->gc) 58#define FACE_GC(f) ((f)->gc)
@@ -76,12 +80,12 @@ typedef int FACE;
76 80
77 There are two instantiations of it: the glyphs currently displayed, 81 There are two instantiations of it: the glyphs currently displayed,
78 and the glyphs we desire to display. The latter object is generated 82 and the glyphs we desire to display. The latter object is generated
79 from buffers being displayed. */ 83 from buffers being displayed. */
80 84
81struct frame_glyphs 85struct frame_glyphs
82 { 86 {
83#ifdef MULTI_FRAME 87#ifdef MULTI_FRAME
84 struct frame *frame; /* Frame these glyphs belong to. */ 88 struct frame *frame; /* Frame these glyphs belong to. */
85#endif /* MULTI_FRAME */ 89#endif /* MULTI_FRAME */
86 int height; 90 int height;
87 int width; 91 int width;
@@ -108,21 +112,21 @@ struct frame_glyphs
108 /* highlight[n] != 0 iff line n is highlighted. */ 112 /* highlight[n] != 0 iff line n is highlighted. */
109 char *highlight; 113 char *highlight;
110 114
111 /* Buffer offset of this line's first char. */ 115 /* Buffer offset of this line's first char. */
112 int *bufp; 116 int *bufp;
113 117
114#ifdef HAVE_X_WINDOWS 118#ifdef HAVE_X_WINDOWS
115 /* Pixel position of top left corner of line. */ 119 /* Pixel position of top left corner of line. */
116 short *top_left_x; 120 short *top_left_x;
117 short *top_left_y; 121 short *top_left_y;
118 122
119 /* Pixel width of line. */ 123 /* Pixel width of line. */
120 short *pix_width; 124 short *pix_width;
121 125
122 /* Pixel height of line. */ 126 /* Pixel height of line. */
123 short *pix_height; 127 short *pix_height;
124 128
125 /* Largest font ascent on this line. */ 129 /* Largest font ascent on this line. */
126 short *max_ascent; 130 short *max_ascent;
127#endif /* HAVE_X_WINDOWS */ 131#endif /* HAVE_X_WINDOWS */
128 }; 132 };