comparison src/xterm.h @ 25466:7057ab217315

(FRAME_X_FLAGS_AREA_COLS): Define it as the total width of both margins. (FRAME_X_FLAGS_AREA_WIDTH): Likewise. (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 30 Aug 1999 23:14:40 +0000
parents 7505930b5456
children c19107a5df88
comparison
equal deleted inserted replaced
25465:1b6d98e8c3ac 25466:7057ab217315
628 continuation etc. */ 628 continuation etc. */
629 629
630 #define FRAME_FLAGS_BITMAP_WIDTH(f) 8 630 #define FRAME_FLAGS_BITMAP_WIDTH(f) 8
631 #define FRAME_FLAGS_BITMAP_HEIGHT(f) 8 631 #define FRAME_FLAGS_BITMAP_HEIGHT(f) 8
632 632
633 /* Width of a single area reserved for drawing truncation bitmaps, 633 /* Total width of a areas reserved for drawing truncation bitmaps,
634 continuation bitmaps and alike. The width is in canonical char 634 continuation bitmaps and alike. The width is in canonical char
635 units of the frame. This must currently be the case because window 635 units of the frame. This must currently be the case because window
636 sizes aren't pixel values. If it weren't the case, we wouldn't be 636 sizes aren't pixel values. If it weren't the case, we wouldn't be
637 able to split windows horizontally nicely. */ 637 able to split windows horizontally nicely. */
638 638
639 #define FRAME_X_FLAGS_AREA_COLS(F) \ 639 #define FRAME_X_FLAGS_AREA_COLS(F) \
640 ((FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ 640 ((2 * FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \
641 / CANON_X_UNIT ((F))) 641 / CANON_X_UNIT ((F)))
642
643 /* Total width of flags areas in pixels. */
642 644
643 #define FRAME_X_FLAGS_AREA_WIDTH(F) \ 645 #define FRAME_X_FLAGS_AREA_WIDTH(F) \
644 (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F))) 646 (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F)))
647
648 /* Pixel-width of the left flags area. */
649
650 #define FRAME_X_LEFT_FLAGS_AREA_WIDTH(F) \
651 (FRAME_X_FLAGS_AREA_WIDTH (F) / 2)
652
653 /* Pixel-width of the right flags area. Note that we are doing
654 integer arithmetic here, so don't loose a pixel if the total
655 width is an odd number. */
656
657 #define FRAME_X_RIGHT_FLAGS_AREA_WIDTH(F) \
658 (FRAME_X_FLAGS_AREA_WIDTH (F) - FRAME_X_FLAGS_AREA_WIDTH (F) / 2)
659
645 660
646 661
647 /* X-specific scroll bar stuff. */ 662 /* X-specific scroll bar stuff. */
648 663
649 /* We represent scroll bars as lisp vectors. This allows us to place 664 /* We represent scroll bars as lisp vectors. This allows us to place