Mercurial > emacs
comparison src/xterm.h @ 16268:eed1157f0587
(VERTICAL_SCROLL_BAR_WIDTH_TRIM): Renamed from
LEFT_VERTICAL_SCROLL_BAR_WIDTH_TRIM.
(VERTICAL_SCROLL_BAR_INSIDE_WIDTH): Use VERTICAL_SCROLL_BAR_WIDTH_TRIM.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 21 Sep 1996 04:18:58 +0000 |
parents | 41c962c84de5 |
children | fd0b17a79b07 |
comparison
equal
deleted
inserted
replaced
16267:05ca2cb9fe0f | 16268:eed1157f0587 |
---|---|
604 width. */ | 604 width. */ |
605 #define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f, width) \ | 605 #define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f, width) \ |
606 ((width) \ | 606 ((width) \ |
607 - VERTICAL_SCROLL_BAR_LEFT_BORDER \ | 607 - VERTICAL_SCROLL_BAR_LEFT_BORDER \ |
608 - VERTICAL_SCROLL_BAR_RIGHT_BORDER \ | 608 - VERTICAL_SCROLL_BAR_RIGHT_BORDER \ |
609 - (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \ | 609 - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2) |
610 ? LEFT_VERTICAL_SCROLL_BAR_WIDTH_TRIM \ | |
611 : 0)) | |
612 | 610 |
613 /* Return the length of the rectangle within which the top of the | 611 /* Return the length of the rectangle within which the top of the |
614 handle must stay. This isn't equivalent to the inside height, | 612 handle must stay. This isn't equivalent to the inside height, |
615 because the scroll bar handle has a minimum height. | 613 because the scroll bar handle has a minimum height. |
616 | 614 |
643 #define VERTICAL_SCROLL_BAR_BOTTOM_BORDER (2) | 641 #define VERTICAL_SCROLL_BAR_BOTTOM_BORDER (2) |
644 | 642 |
645 /* Minimum lengths for scroll bar handles, in pixels. */ | 643 /* Minimum lengths for scroll bar handles, in pixels. */ |
646 #define VERTICAL_SCROLL_BAR_MIN_HANDLE (5) | 644 #define VERTICAL_SCROLL_BAR_MIN_HANDLE (5) |
647 | 645 |
648 /* For a left-side scroll bar, trimming off a few pixels prevents | 646 /* Trimming off a few pixels from each side prevents |
649 text from glomming up against the scroll bar */ | 647 text from glomming up against the scroll bar */ |
650 #define LEFT_VERTICAL_SCROLL_BAR_WIDTH_TRIM (2) | 648 #define VERTICAL_SCROLL_BAR_WIDTH_TRIM (2) |
651 | 649 |
652 | 650 |
653 /* Manipulating pixel sizes and character sizes. | 651 /* Manipulating pixel sizes and character sizes. |
654 Knowledge of which factors affect the overall size of the window should | 652 Knowledge of which factors affect the overall size of the window should |
655 be hidden in these macros, if that's possible. | 653 be hidden in these macros, if that's possible. |