aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-03-28 05:22:46 +0000
committerRichard M. Stallman1993-03-28 05:22:46 +0000
commit13bd51a56875cf28c2e7ef5f325392262c85ff7d (patch)
treec91c11e0c78796fd35d04097072af7ed81a844ec /src
parent97832bd0c8ca815c417e86482d5d2306779277a6 (diff)
downloademacs-13bd51a56875cf28c2e7ef5f325392262c85ff7d.tar.gz
emacs-13bd51a56875cf28c2e7ef5f325392262c85ff7d.zip
(FRAME_FACES, FRAME_N_FACES, FRAME_DEFAULT_FACE)
(FRAME_MODE_LINE_FACE): New macros. (struct x_display): New fields faces, n_faces.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/xterm.h b/src/xterm.h
index b9a18a54977..eccaadcc734 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -351,8 +351,19 @@ struct x_display
351 /* The size of the extra width currently allotted for vertical 351 /* The size of the extra width currently allotted for vertical
352 scroll bars, in pixels. */ 352 scroll bars, in pixels. */
353 int vertical_scroll_bar_extra; 353 int vertical_scroll_bar_extra;
354
355 /* Table of faces for this frame. */
356 struct face **faces;
357 /* Length of that table. */
358 int n_faces;
354}; 359};
355 360
361/* Get at the faces of an X window frame. */
362#define FRAME_FACES(f) ((f)->display.x->faces)
363#define FRAME_N_FACES(f) ((f)->display.x->n_faces)
364#define FRAME_DEFAULT_FACE(f) ((f)->display.x->faces[0])
365#define FRAME_MODE_LINE_FACE(f) ((f)->display.x->faces[1])
366
356/* Return the window associated with the frame F. */ 367/* Return the window associated with the frame F. */
357#define FRAME_X_WINDOW(f) ((f)->display.x->window_desc) 368#define FRAME_X_WINDOW(f) ((f)->display.x->window_desc)
358 369
@@ -363,13 +374,13 @@ struct x_display
363#define FRAME_DESIRED_CURSOR(f) ((f)->display.x->desired_cursor) 374#define FRAME_DESIRED_CURSOR(f) ((f)->display.x->desired_cursor)
364 375
365 376
366/* When X windows are used, a glyf may be a 16 bit unsigned datum. 377/* When X windows are used, a glyph may be a 16 bit unsigned datum.
367 The high order byte is the face number and is used as an index 378 The high order byte is the face number and is used as an index
368 in the face table. A face is a font plus: 379 in the face table. A face is a font plus:
369 1) the unhighlighted foreground color, 380 1) the unhighlighted foreground color,
370 2) the unhighlighted background color. 381 2) the unhighlighted background color.
371 For highlighting, the two colors are exchanged. 382 For highlighting, the two colors are exchanged.
372 Face number 0 is unused. The low order byte of a glyf gives 383 Face number 0 is unused. The low order byte of a glyph gives
373 the character within the font. All fonts are assumed to be 384 the character within the font. All fonts are assumed to be
374 fixed width, and to have the same height and width. */ 385 fixed width, and to have the same height and width. */
375 386