comparison src/frame.h @ 35798:48534cd0de43

(FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 31 Jan 2001 20:24:36 +0000
parents 6bbd23bff222
children 74655128ce2d
comparison
equal deleted inserted replaced
35797:c6c152eee9a8 35798:48534cd0de43
514 Measured in columns (characters). 514 Measured in columns (characters).
515 If scroll bars are turned off, this is still nonzero. */ 515 If scroll bars are turned off, this is still nonzero. */
516 #define FRAME_SCROLL_BAR_COLS(f) ((f)->scroll_bar_cols) 516 #define FRAME_SCROLL_BAR_COLS(f) ((f)->scroll_bar_cols)
517 517
518 /* Width of a scroll bar in frame F, measured in columns (characters), 518 /* Width of a scroll bar in frame F, measured in columns (characters),
519 but only if scroll bars are on the left. 519 but only if scroll bars are on the left. If scroll bars are on
520 If scroll bars are on the right in this frame, it is 0. */ 520 the right in this frame, or there are no scroll bars, value is 0. */
521 #define FRAME_LEFT_SCROLL_BAR_WIDTH(f) \ 521
522 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \ 522 #define FRAME_LEFT_SCROLL_BAR_WIDTH(f) \
523 ? FRAME_SCROLL_BAR_COLS (f) \ 523 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \
524 ? FRAME_SCROLL_BAR_COLS (f) \
525 : 0)
526
527 /* Width of a scroll bar in frame F, measured in columns (characters),
528 but only if scroll bars are on the right. If scroll bars are on
529 the left in this frame, or there are no scroll bars, value is 0. */
530
531 #define FRAME_RIGHT_SCROLL_BAR_WIDTH(f) \
532 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f) \
533 ? FRAME_SCROLL_BAR_COLS (f) \
524 : 0) 534 : 0)
525 535
526 /* Width of a scroll bar in frame F, measured in columns (characters). */ 536 /* Width of a scroll bar in frame F, measured in columns (characters). */
527 #define FRAME_SCROLL_BAR_WIDTH(f) \ 537 #define FRAME_SCROLL_BAR_WIDTH(f) \
528 (FRAME_HAS_VERTICAL_SCROLL_BARS (f) \ 538 (FRAME_HAS_VERTICAL_SCROLL_BARS (f) \