aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2001-12-01 01:16:32 +0000
committerKim F. Storm2001-12-01 01:16:32 +0000
commitd246e5586b4cbb5543a4c3d1579cae111513f16a (patch)
tree2264200ac884ace27120fa806c7e9f62590c4620 /src
parentc13418acb6a08994fcd7809bf00f77edd7de9e27 (diff)
downloademacs-d246e5586b4cbb5543a4c3d1579cae111513f16a.tar.gz
emacs-d246e5586b4cbb5543a4c3d1579cae111513f16a.zip
struct x_output): Add left_fringe_width, right_fringe_width,
and fringe_cols fields. (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros. (FRAME_X_FRINGE_COLS): Use fringe_cols field. (FRAME_X_FRINGE_WIDTH): Use fringes_extra field. (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field. (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field. (x_compute_fringe_widths): Add prototype.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.h30
1 files changed, 8 insertions, 22 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 791c6c8bf8e..5c8ec39627d 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -537,7 +537,8 @@ struct x_output
537 /* The extra width currently allotted for the areas in which 537 /* The extra width currently allotted for the areas in which
538 truncation marks, continuation marks, and overlay arrows are 538 truncation marks, continuation marks, and overlay arrows are
539 displayed. */ 539 displayed. */
540 int fringes_extra; 540 int left_fringe_width, right_fringe_width;
541 int fringe_cols, fringes_extra;
541 542
542 /* This is the gravity value for the specified window position. */ 543 /* This is the gravity value for the specified window position. */
543 int win_gravity; 544 int win_gravity;
@@ -661,38 +662,22 @@ struct x_output
661#define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache 662#define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache
662 663
663 664
664/* Pixel width of the fringe bitmaps drawn to indicate truncation,
665 continuation etc. */
666
667#define FRAME_FRINGE_BITMAP_WIDTH(f) 8
668#define FRAME_FRINGE_BITMAP_HEIGHT(f) 8
669
670/* Total width of fringes reserved for drawing truncation bitmaps, 665/* Total width of fringes reserved for drawing truncation bitmaps,
671 continuation bitmaps and alike. The width is in canonical char 666 continuation bitmaps and alike. The width is in canonical char
672 units of the frame. This must currently be the case because window 667 units of the frame. This must currently be the case because window
673 sizes aren't pixel values. If it weren't the case, we wouldn't be 668 sizes aren't pixel values. If it weren't the case, we wouldn't be
674 able to split windows horizontally nicely. */ 669 able to split windows horizontally nicely. */
675 670
676#define FRAME_X_FRINGE_COLS(F) \ 671#define FRAME_X_FRINGE_COLS(F) ((F)->output_data.x->fringe_cols)
677 ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \
678 / CANON_X_UNIT ((F)))
679 672
680/* Total width of fringes in pixels. */ 673/* Total width of fringes in pixels. */
681 674
682#define FRAME_X_FRINGE_WIDTH(F) \ 675#define FRAME_X_FRINGE_WIDTH(F) ((F)->output_data.x->fringes_extra)
683 (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F)))
684
685/* Pixel-width of the left fringe. */
686
687#define FRAME_X_LEFT_FRINGE_WIDTH(F) \
688 (FRAME_X_FRINGE_WIDTH (F) / 2)
689 676
690/* Pixel-width of the right fringe. Note that we are doing 677/* Pixel-width of the left and right fringe. */
691 integer arithmetic here, so don't loose a pixel if the total
692 width is an odd number. */
693 678
694#define FRAME_X_RIGHT_FRINGE_WIDTH(F) \ 679#define FRAME_X_LEFT_FRINGE_WIDTH(F) ((F)->output_data.x->left_fringe_width)
695 (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2) 680#define FRAME_X_RIGHT_FRINGE_WIDTH(F) ((F)->output_data.x->right_fringe_width)
696 681
697 682
698 683
@@ -981,6 +966,7 @@ extern int x_had_errors_p P_ ((Display *));
981extern void x_uncatch_errors P_ ((Display *, int)); 966extern void x_uncatch_errors P_ ((Display *, int));
982extern Lisp_Object x_new_font P_ ((struct frame *, char *)); 967extern Lisp_Object x_new_font P_ ((struct frame *, char *));
983extern Lisp_Object x_new_fontset P_ ((struct frame *, char *)); 968extern Lisp_Object x_new_fontset P_ ((struct frame *, char *));
969extern void x_compute_fringe_widths P_ ((struct frame *, int));
984extern void x_set_offset P_ ((struct frame *, int, int, int)); 970extern void x_set_offset P_ ((struct frame *, int, int, int));
985extern void x_set_window_size P_ ((struct frame *, int, int, int)); 971extern void x_set_window_size P_ ((struct frame *, int, int, int));
986extern void x_set_mouse_position P_ ((struct frame *, int, int)); 972extern void x_set_mouse_position P_ ((struct frame *, int, int));