537 |
/* The extra width currently allotted for the areas in which |
/* The extra width currently allotted for the areas in which |
538 |
truncation marks, continuation marks, and overlay arrows are |
truncation marks, continuation marks, and overlay arrows are |
539 |
displayed. */ |
displayed. */ |
540 |
int fringes_extra; |
int left_fringe_width, right_fringe_width; |
541 |
|
int fringe_cols, fringes_extra; |
542 |
|
|
543 |
/* This is the gravity value for the specified window position. */ |
/* This is the gravity value for the specified window position. */ |
544 |
int win_gravity; |
int win_gravity; |
662 |
#define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache |
#define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache |
663 |
|
|
664 |
|
|
|
/* Pixel width of the fringe bitmaps drawn to indicate truncation, |
|
|
continuation etc. */ |
|
|
|
|
|
#define FRAME_FRINGE_BITMAP_WIDTH(f) 8 |
|
|
#define FRAME_FRINGE_BITMAP_HEIGHT(f) 8 |
|
|
|
|
665 |
/* Total width of fringes reserved for drawing truncation bitmaps, |
/* Total width of fringes reserved for drawing truncation bitmaps, |
666 |
continuation bitmaps and alike. The width is in canonical char |
continuation bitmaps and alike. The width is in canonical char |
667 |
units of the frame. This must currently be the case because window |
units of the frame. This must currently be the case because window |
668 |
sizes aren't pixel values. If it weren't the case, we wouldn't be |
sizes aren't pixel values. If it weren't the case, we wouldn't be |
669 |
able to split windows horizontally nicely. */ |
able to split windows horizontally nicely. */ |
670 |
|
|
671 |
#define FRAME_X_FRINGE_COLS(F) \ |
#define FRAME_X_FRINGE_COLS(F) ((F)->output_data.x->fringe_cols) |
|
((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ |
|
|
/ CANON_X_UNIT ((F))) |
|
672 |
|
|
673 |
/* Total width of fringes in pixels. */ |
/* Total width of fringes in pixels. */ |
674 |
|
|
675 |
#define FRAME_X_FRINGE_WIDTH(F) \ |
#define FRAME_X_FRINGE_WIDTH(F) ((F)->output_data.x->fringes_extra) |
|
(FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F))) |
|
|
|
|
|
/* Pixel-width of the left fringe. */ |
|
|
|
|
|
#define FRAME_X_LEFT_FRINGE_WIDTH(F) \ |
|
|
(FRAME_X_FRINGE_WIDTH (F) / 2) |
|
676 |
|
|
677 |
/* Pixel-width of the right fringe. Note that we are doing |
/* Pixel-width of the left and right fringe. */ |
|
integer arithmetic here, so don't loose a pixel if the total |
|
|
width is an odd number. */ |
|
678 |
|
|
679 |
#define FRAME_X_RIGHT_FRINGE_WIDTH(F) \ |
#define FRAME_X_LEFT_FRINGE_WIDTH(F) ((F)->output_data.x->left_fringe_width) |
680 |
(FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2) |
#define FRAME_X_RIGHT_FRINGE_WIDTH(F) ((F)->output_data.x->right_fringe_width) |
681 |
|
|
682 |
|
|
683 |
|
|
966 |
extern void x_uncatch_errors P_ ((Display *, int)); |
extern void x_uncatch_errors P_ ((Display *, int)); |
967 |
extern Lisp_Object x_new_font P_ ((struct frame *, char *)); |
extern Lisp_Object x_new_font P_ ((struct frame *, char *)); |
968 |
extern Lisp_Object x_new_fontset P_ ((struct frame *, char *)); |
extern Lisp_Object x_new_fontset P_ ((struct frame *, char *)); |
969 |
|
extern void x_compute_fringe_widths P_ ((struct frame *, int)); |
970 |
extern void x_set_offset P_ ((struct frame *, int, int, int)); |
extern void x_set_offset P_ ((struct frame *, int, int, int)); |
971 |
extern void x_set_window_size P_ ((struct frame *, int, int, int)); |
extern void x_set_window_size P_ ((struct frame *, int, int, int)); |
972 |
extern void x_set_mouse_position P_ ((struct frame *, int, int)); |
extern void x_set_mouse_position P_ ((struct frame *, int, int)); |