comparison src/xterm.h @ 2394:6ec15e6b2a08

(FRAME_FACES, FRAME_N_FACES, FRAME_DEFAULT_FACE) (FRAME_MODE_LINE_FACE): New macros. (struct x_display): New fields faces, n_faces.
author Richard M. Stallman <rms@gnu.org>
date Sun, 28 Mar 1993 05:22:46 +0000
parents dcc756fba34f
children b6c62e4abf59
comparison
equal deleted inserted replaced
2393:a35d2c5cbb3b 2394:6ec15e6b2a08
349 XWMHints wm_hints; 349 XWMHints wm_hints;
350 350
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 };
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])
355 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
359 /* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */ 370 /* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */
361 #define PIXEL_HEIGHT(f) ((f)->display.x->pixel_height) 372 #define PIXEL_HEIGHT(f) ((f)->display.x->pixel_height)
362 373
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
376 #ifdef HAVE_X11 387 #ifdef HAVE_X11
377 388