diff options
| author | Richard M. Stallman | 1995-07-25 21:20:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-07-25 21:20:18 +0000 |
| commit | f39d16924d2e946dd604c819b04d3df6910f8432 (patch) | |
| tree | b151028243888ba3a1298444c360cca36698ec80 /src | |
| parent | 785ee691c3a744048d7baa671a48e5a9aa428362 (diff) | |
| download | emacs-f39d16924d2e946dd604c819b04d3df6910f8432.tar.gz emacs-f39d16924d2e946dd604c819b04d3df6910f8432.zip | |
(struct x_output): Renamed from struct x_display.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/xterm.h b/src/xterm.h index ea7ecac127d..77c17bcb155 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -325,11 +325,11 @@ extern struct x_display_info *x_display_info_for_name (); | |||
| 325 | 325 | ||
| 326 | extern struct x_display_info *x_term_init (); | 326 | extern struct x_display_info *x_term_init (); |
| 327 | 327 | ||
| 328 | /* Each X frame object points to its own struct x_display object | 328 | /* Each X frame object points to its own struct x_output object |
| 329 | in the display.x field. The x_display structure contains all | 329 | in the output_data.x field. The x_output structure contains |
| 330 | the information that is specific to X windows. */ | 330 | the information that is specific to X windows. */ |
| 331 | 331 | ||
| 332 | struct x_display | 332 | struct x_output |
| 333 | { | 333 | { |
| 334 | /* Position of the X window (x and y offsets in root window). */ | 334 | /* Position of the X window (x and y offsets in root window). */ |
| 335 | int left_pos; | 335 | int left_pos; |
| @@ -484,26 +484,26 @@ struct x_display | |||
| 484 | }; | 484 | }; |
| 485 | 485 | ||
| 486 | /* Get at the computed faces of an X window frame. */ | 486 | /* Get at the computed faces of an X window frame. */ |
| 487 | #define FRAME_PARAM_FACES(f) ((f)->display.x->param_faces) | 487 | #define FRAME_PARAM_FACES(f) ((f)->output_data.x->param_faces) |
| 488 | #define FRAME_N_PARAM_FACES(f) ((f)->display.x->n_param_faces) | 488 | #define FRAME_N_PARAM_FACES(f) ((f)->output_data.x->n_param_faces) |
| 489 | #define FRAME_DEFAULT_PARAM_FACE(f) (FRAME_PARAM_FACES (f)[0]) | 489 | #define FRAME_DEFAULT_PARAM_FACE(f) (FRAME_PARAM_FACES (f)[0]) |
| 490 | #define FRAME_MODE_LINE_PARAM_FACE(f) (FRAME_PARAM_FACES (f)[1]) | 490 | #define FRAME_MODE_LINE_PARAM_FACE(f) (FRAME_PARAM_FACES (f)[1]) |
| 491 | 491 | ||
| 492 | #define FRAME_COMPUTED_FACES(f) ((f)->display.x->computed_faces) | 492 | #define FRAME_COMPUTED_FACES(f) ((f)->output_data.x->computed_faces) |
| 493 | #define FRAME_N_COMPUTED_FACES(f) ((f)->display.x->n_computed_faces) | 493 | #define FRAME_N_COMPUTED_FACES(f) ((f)->output_data.x->n_computed_faces) |
| 494 | #define FRAME_SIZE_COMPUTED_FACES(f) ((f)->display.x->size_computed_faces) | 494 | #define FRAME_SIZE_COMPUTED_FACES(f) ((f)->output_data.x->size_computed_faces) |
| 495 | #define FRAME_DEFAULT_FACE(f) ((f)->display.x->computed_faces[0]) | 495 | #define FRAME_DEFAULT_FACE(f) ((f)->output_data.x->computed_faces[0]) |
| 496 | #define FRAME_MODE_LINE_FACE(f) ((f)->display.x->computed_faces[1]) | 496 | #define FRAME_MODE_LINE_FACE(f) ((f)->output_data.x->computed_faces[1]) |
| 497 | 497 | ||
| 498 | /* Return the window associated with the frame F. */ | 498 | /* Return the window associated with the frame F. */ |
| 499 | #define FRAME_X_WINDOW(f) ((f)->display.x->window_desc) | 499 | #define FRAME_X_WINDOW(f) ((f)->output_data.x->window_desc) |
| 500 | 500 | ||
| 501 | #define FRAME_FOREGROUND_PIXEL(f) ((f)->display.x->foreground_pixel) | 501 | #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) |
| 502 | #define FRAME_BACKGROUND_PIXEL(f) ((f)->display.x->background_pixel) | 502 | #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel) |
| 503 | #define FRAME_FONT(f) ((f)->display.x->font) | 503 | #define FRAME_FONT(f) ((f)->output_data.x->font) |
| 504 | 504 | ||
| 505 | /* This gives the x_display_info structure for the display F is on. */ | 505 | /* This gives the x_display_info structure for the display F is on. */ |
| 506 | #define FRAME_X_DISPLAY_INFO(f) ((f)->display.x->display_info) | 506 | #define FRAME_X_DISPLAY_INFO(f) ((f)->output_data.x->display_info) |
| 507 | 507 | ||
| 508 | /* This is the `Display *' which frame F is on. */ | 508 | /* This is the `Display *' which frame F is on. */ |
| 509 | #define FRAME_X_DISPLAY(f) (FRAME_X_DISPLAY_INFO (f)->display) | 509 | #define FRAME_X_DISPLAY(f) (FRAME_X_DISPLAY_INFO (f)->display) |
| @@ -512,10 +512,10 @@ struct x_display | |||
| 512 | #define FRAME_X_SCREEN(f) (FRAME_X_DISPLAY_INFO (f)->screen) | 512 | #define FRAME_X_SCREEN(f) (FRAME_X_DISPLAY_INFO (f)->screen) |
| 513 | 513 | ||
| 514 | /* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */ | 514 | /* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */ |
| 515 | #define PIXEL_WIDTH(f) ((f)->display.x->pixel_width) | 515 | #define PIXEL_WIDTH(f) ((f)->output_data.x->pixel_width) |
| 516 | #define PIXEL_HEIGHT(f) ((f)->display.x->pixel_height) | 516 | #define PIXEL_HEIGHT(f) ((f)->output_data.x->pixel_height) |
| 517 | 517 | ||
| 518 | #define FRAME_DESIRED_CURSOR(f) ((f)->display.x->desired_cursor) | 518 | #define FRAME_DESIRED_CURSOR(f) ((f)->output_data.x->desired_cursor) |
| 519 | 519 | ||
| 520 | 520 | ||
| 521 | /* X-specific scroll bar stuff. */ | 521 | /* X-specific scroll bar stuff. */ |
| @@ -599,7 +599,7 @@ struct scroll_bar { | |||
| 599 | /* Return the outside pixel height for a vertical scroll bar HEIGHT | 599 | /* Return the outside pixel height for a vertical scroll bar HEIGHT |
| 600 | rows high on frame F. */ | 600 | rows high on frame F. */ |
| 601 | #define VERTICAL_SCROLL_BAR_PIXEL_HEIGHT(f, height) \ | 601 | #define VERTICAL_SCROLL_BAR_PIXEL_HEIGHT(f, height) \ |
| 602 | ((height) * (f)->display.x->line_height) | 602 | ((height) * (f)->output_data.x->line_height) |
| 603 | 603 | ||
| 604 | /* Return the inside width of a vertical scroll bar, given the outside | 604 | /* Return the inside width of a vertical scroll bar, given the outside |
| 605 | width. */ | 605 | width. */ |
| @@ -649,41 +649,41 @@ struct scroll_bar { | |||
| 649 | Return the upper/left pixel position of the character cell on frame F | 649 | Return the upper/left pixel position of the character cell on frame F |
| 650 | at ROW/COL. */ | 650 | at ROW/COL. */ |
| 651 | #define CHAR_TO_PIXEL_ROW(f, row) \ | 651 | #define CHAR_TO_PIXEL_ROW(f, row) \ |
| 652 | ((f)->display.x->internal_border_width \ | 652 | ((f)->output_data.x->internal_border_width \ |
| 653 | + (row) * (f)->display.x->line_height) | 653 | + (row) * (f)->output_data.x->line_height) |
| 654 | #define CHAR_TO_PIXEL_COL(f, col) \ | 654 | #define CHAR_TO_PIXEL_COL(f, col) \ |
| 655 | ((f)->display.x->internal_border_width \ | 655 | ((f)->output_data.x->internal_border_width \ |
| 656 | + (col) * FONT_WIDTH ((f)->display.x->font)) | 656 | + (col) * FONT_WIDTH ((f)->output_data.x->font)) |
| 657 | 657 | ||
| 658 | /* Return the pixel width/height of frame F if it has | 658 | /* Return the pixel width/height of frame F if it has |
| 659 | WIDTH columns/HEIGHT rows. */ | 659 | WIDTH columns/HEIGHT rows. */ |
| 660 | #define CHAR_TO_PIXEL_WIDTH(f, width) \ | 660 | #define CHAR_TO_PIXEL_WIDTH(f, width) \ |
| 661 | (CHAR_TO_PIXEL_COL (f, width) \ | 661 | (CHAR_TO_PIXEL_COL (f, width) \ |
| 662 | + (f)->display.x->vertical_scroll_bar_extra \ | 662 | + (f)->output_data.x->vertical_scroll_bar_extra \ |
| 663 | + (f)->display.x->internal_border_width) | 663 | + (f)->output_data.x->internal_border_width) |
| 664 | #define CHAR_TO_PIXEL_HEIGHT(f, height) \ | 664 | #define CHAR_TO_PIXEL_HEIGHT(f, height) \ |
| 665 | (CHAR_TO_PIXEL_ROW (f, height) \ | 665 | (CHAR_TO_PIXEL_ROW (f, height) \ |
| 666 | + (f)->display.x->internal_border_width) | 666 | + (f)->output_data.x->internal_border_width) |
| 667 | 667 | ||
| 668 | 668 | ||
| 669 | /* Return the row/column (zero-based) of the character cell containing | 669 | /* Return the row/column (zero-based) of the character cell containing |
| 670 | the pixel on FRAME at ROW/COL. */ | 670 | the pixel on FRAME at ROW/COL. */ |
| 671 | #define PIXEL_TO_CHAR_ROW(f, row) \ | 671 | #define PIXEL_TO_CHAR_ROW(f, row) \ |
| 672 | (((row) - (f)->display.x->internal_border_width) \ | 672 | (((row) - (f)->output_data.x->internal_border_width) \ |
| 673 | / (f)->display.x->line_height) | 673 | / (f)->output_data.x->line_height) |
| 674 | #define PIXEL_TO_CHAR_COL(f, col) \ | 674 | #define PIXEL_TO_CHAR_COL(f, col) \ |
| 675 | (((col) - (f)->display.x->internal_border_width) \ | 675 | (((col) - (f)->output_data.x->internal_border_width) \ |
| 676 | / FONT_WIDTH ((f)->display.x->font)) | 676 | / FONT_WIDTH ((f)->output_data.x->font)) |
| 677 | 677 | ||
| 678 | /* How many columns/rows of text can we fit in WIDTH/HEIGHT pixels on | 678 | /* How many columns/rows of text can we fit in WIDTH/HEIGHT pixels on |
| 679 | frame F? */ | 679 | frame F? */ |
| 680 | #define PIXEL_TO_CHAR_WIDTH(f, width) \ | 680 | #define PIXEL_TO_CHAR_WIDTH(f, width) \ |
| 681 | (PIXEL_TO_CHAR_COL (f, ((width) \ | 681 | (PIXEL_TO_CHAR_COL (f, ((width) \ |
| 682 | - (f)->display.x->internal_border_width \ | 682 | - (f)->output_data.x->internal_border_width \ |
| 683 | - (f)->display.x->vertical_scroll_bar_extra))) | 683 | - (f)->output_data.x->vertical_scroll_bar_extra))) |
| 684 | #define PIXEL_TO_CHAR_HEIGHT(f, height) \ | 684 | #define PIXEL_TO_CHAR_HEIGHT(f, height) \ |
| 685 | (PIXEL_TO_CHAR_ROW (f, ((height) \ | 685 | (PIXEL_TO_CHAR_ROW (f, ((height) \ |
| 686 | - (f)->display.x->internal_border_width))) | 686 | - (f)->output_data.x->internal_border_width))) |
| 687 | 687 | ||
| 688 | /* If a struct input_event has a kind which is selection_request_event | 688 | /* If a struct input_event has a kind which is selection_request_event |
| 689 | or selection_clear_event, then its contents are really described | 689 | or selection_clear_event, then its contents are really described |