Mercurial > emacs
comparison src/w32term.h @ 50155:2b702ff059f8
(FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
New macros for consolidation.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sun, 16 Mar 2003 20:48:21 +0000 |
parents | bb427a9406c3 |
children | fbdd920c1fa4 |
comparison
equal
deleted
inserted
replaced
50154:10038ae9db85 | 50155:2b702ff059f8 |
---|---|
439 FULLSCREEN_BOTH = 3, | 439 FULLSCREEN_BOTH = 3, |
440 FULLSCREEN_WAIT = 4, | 440 FULLSCREEN_WAIT = 4, |
441 FULLSCREEN_MOVE_WAIT = 8, | 441 FULLSCREEN_MOVE_WAIT = 8, |
442 }; | 442 }; |
443 | 443 |
444 /* Return the X output data for frame F. */ | |
445 #define FRAME_X_OUTPUT(f) ((f)->output_data.w32) | |
446 | |
444 /* Return the window associated with the frame F. */ | 447 /* Return the window associated with the frame F. */ |
445 #define FRAME_W32_WINDOW(f) ((f)->output_data.w32->window_desc) | 448 #define FRAME_W32_WINDOW(f) ((f)->output_data.w32->window_desc) |
449 #define FRAME_X_WINDOW(f) ((f)->output_data.w32->window_desc) | |
446 | 450 |
447 #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) | 451 #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) |
448 #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel) | 452 #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel) |
449 #define FRAME_FONT(f) ((f)->output_data.w32->font) | 453 #define FRAME_FONT(f) ((f)->output_data.w32->font) |
450 #define FRAME_FONTSET(f) ((f)->output_data.w32->fontset) | 454 #define FRAME_FONTSET(f) ((f)->output_data.w32->fontset) |
456 #define FRAME_BASELINE_OFFSET(f) ((f)->output_data.w32->baseline_offset) | 460 #define FRAME_BASELINE_OFFSET(f) ((f)->output_data.w32->baseline_offset) |
457 | 461 |
458 /* This gives the w32_display_info structure for the display F is on. */ | 462 /* This gives the w32_display_info structure for the display F is on. */ |
459 #define FRAME_W32_DISPLAY_INFO(f) (&one_w32_display_info) | 463 #define FRAME_W32_DISPLAY_INFO(f) (&one_w32_display_info) |
460 #define FRAME_X_DISPLAY_INFO(f) (&one_w32_display_info) | 464 #define FRAME_X_DISPLAY_INFO(f) (&one_w32_display_info) |
465 | |
466 /* This is the `Display *' which frame F is on. */ | |
467 #define FRAME_X_DISPLAY(f) (0) | |
461 | 468 |
462 /* This is the 'font_info *' which frame F has. */ | 469 /* This is the 'font_info *' which frame F has. */ |
463 #define FRAME_W32_FONT_TABLE(f) (FRAME_W32_DISPLAY_INFO (f)->font_table) | 470 #define FRAME_W32_FONT_TABLE(f) (FRAME_W32_DISPLAY_INFO (f)->font_table) |
464 | 471 |
465 /* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */ | 472 /* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */ |
849 XGCValues *XCreateGC (void *, Window, unsigned long, XGCValues *); | 856 XGCValues *XCreateGC (void *, Window, unsigned long, XGCValues *); |
850 struct frame * check_x_frame (Lisp_Object); | 857 struct frame * check_x_frame (Lisp_Object); |
851 EXFUN (Fx_display_color_p, 1); | 858 EXFUN (Fx_display_color_p, 1); |
852 EXFUN (Fx_display_grayscale_p, 1); | 859 EXFUN (Fx_display_grayscale_p, 1); |
853 int image_ascent P_ ((struct image *, struct face *)); | 860 int image_ascent P_ ((struct image *, struct face *)); |
861 | |
862 #define FONT_TYPE_FOR_UNIBYTE(font, ch) \ | |
863 ((font)->bdf ? BDF_1D_FONT : ANSI_FONT) | |
864 | |
865 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) \ | |
866 (!(font)->bdf \ | |
867 ? UNICODE_FONT \ | |
868 : ((CHARSET_DIMENSION (CHAR_CHARSET ((ch))) == 1) \ | |
869 ? BDF_1D_FONT : BDF_2D_FONT)) |