aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-30 23:14:40 +0000
committerGerd Moellmann1999-08-30 23:14:40 +0000
commit81fe0ce9f3a85c2e4800eeb5265d263d74a10463 (patch)
tree89d588f692f7e056dc1750fc15396fd599ef3706
parent110859fc3cf16f8805fc98e7f687a1fd62f0463a (diff)
downloademacs-81fe0ce9f3a85c2e4800eeb5265d263d74a10463.tar.gz
emacs-81fe0ce9f3a85c2e4800eeb5265d263d74a10463.zip
(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.
-rw-r--r--src/xterm.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 2ba12680a7a..39606492b08 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -630,19 +630,34 @@ struct x_output
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 642
643/* Total width of flags areas in pixels. */
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)))
645 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
660
646 661
647/* X-specific scroll bar stuff. */ 662/* X-specific scroll bar stuff. */
648 663