From: Gerd Moellmann Date: Wed, 31 Jan 2001 20:24:36 +0000 (+0000) Subject: (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define. X-Git-Tag: emacs-pretest-21.0.98~243 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d81cf83bddec31aecd0f50e53f45f72525b2892;p=emacs.git (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define. --- diff --git a/src/frame.h b/src/frame.h index 5db5ebd3019..fe836903e9c 100644 --- a/src/frame.h +++ b/src/frame.h @@ -516,11 +516,21 @@ typedef struct frame *FRAME_PTR; #define FRAME_SCROLL_BAR_COLS(f) ((f)->scroll_bar_cols) /* Width of a scroll bar in frame F, measured in columns (characters), - but only if scroll bars are on the left. - If scroll bars are on the right in this frame, it is 0. */ -#define FRAME_LEFT_SCROLL_BAR_WIDTH(f) \ - (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \ - ? FRAME_SCROLL_BAR_COLS (f) \ + but only if scroll bars are on the left. If scroll bars are on + the right in this frame, or there are no scroll bars, value is 0. */ + +#define FRAME_LEFT_SCROLL_BAR_WIDTH(f) \ + (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \ + ? FRAME_SCROLL_BAR_COLS (f) \ + : 0) + +/* Width of a scroll bar in frame F, measured in columns (characters), + but only if scroll bars are on the right. If scroll bars are on + the left in this frame, or there are no scroll bars, value is 0. */ + +#define FRAME_RIGHT_SCROLL_BAR_WIDTH(f) \ + (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f) \ + ? FRAME_SCROLL_BAR_COLS (f) \ : 0) /* Width of a scroll bar in frame F, measured in columns (characters). */