358 |
/* The extra width currently allotted for the areas in which |
/* The extra width currently allotted for the areas in which |
359 |
truncation marks, continuation marks, and overlay arrows are |
truncation marks, continuation marks, and overlay arrows are |
360 |
displayed. */ |
displayed. */ |
361 |
int fringes_extra; |
int left_fringe_width, right_fringe_width; |
362 |
|
int fringe_cols, fringes_extra; |
363 |
|
|
364 |
/* This is the gravity value for the specified window position. */ |
/* This is the gravity value for the specified window position. */ |
365 |
int win_gravity; |
int win_gravity; |
452 |
#define FRAME_X_IMAGE_CACHE(F) FRAME_MAC_DISPLAY_INFO ((F))->image_cache |
#define FRAME_X_IMAGE_CACHE(F) FRAME_MAC_DISPLAY_INFO ((F))->image_cache |
453 |
|
|
454 |
|
|
|
/* 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 |
|
|
|
|
455 |
/* Total width of fringes reserved for drawing truncation bitmaps, |
/* Total width of fringes reserved for drawing truncation bitmaps, |
456 |
continuation bitmaps and alike. The width is in canonical char |
continuation bitmaps and alike. The width is in canonical char |
457 |
units of the frame. This must currently be the case because window |
units of the frame. This must currently be the case because window |
458 |
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 |
459 |
able to split windows horizontally nicely. */ |
able to split windows horizontally nicely. */ |
460 |
|
|
461 |
#define FRAME_X_FRINGE_COLS(F) \ |
#define FRAME_X_FRINGE_COLS(F) ((F)->output_data.mac->fringe_cols) |
|
((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ |
|
|
/ CANON_X_UNIT ((F))) |
|
462 |
|
|
463 |
/* Total width of fringes in pixels. */ |
/* Total width of fringes in pixels. */ |
464 |
|
|
465 |
#define FRAME_X_FRINGE_WIDTH(F) \ |
#define FRAME_X_FRINGE_WIDTH(F) ((F)->output_data.mac->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) |
|
|
|
|
|
/* Pixel-width of the right fringe. Note that we are doing |
|
|
integer arithmetic here, so don't loose a pixel if the total |
|
|
width is an odd number. */ |
|
466 |
|
|
467 |
#define FRAME_X_RIGHT_FRINGE_WIDTH(F) \ |
/* Pixel-width of the left and right fringe. */ |
|
(FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2) |
|
468 |
|
|
469 |
|
#define FRAME_X_LEFT_FRINGE_WIDTH(F) ((F)->output_data.mac->left_fringe_width) |
470 |
|
#define FRAME_X_RIGHT_FRINGE_WIDTH(F) ((F)->output_data.mac->right_fringe_width) |
471 |
|
|
472 |
|
|
473 |
/* Mac-specific scroll bar stuff. */ |
/* Mac-specific scroll bar stuff. */ |