aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2004-12-30 12:24:03 +0000
committerKenichi Handa2004-12-30 12:24:03 +0000
commit0fc63cc42640000e083d705da929b74953d4b084 (patch)
tree2c15080bd12949855f746738f31f716e146ac740
parentc7731805555490291410ab6c15ce2e05a3ea9c35 (diff)
downloademacs-0fc63cc42640000e083d705da929b74953d4b084.tar.gz
emacs-0fc63cc42640000e083d705da929b74953d4b084.zip
(struct frame): New member space_width.
(FRAME_SPACE_WIDTH): New macro.
-rw-r--r--src/frame.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/frame.h b/src/frame.h
index 8bdaff99754..4a0b1ff0f03 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -275,6 +275,9 @@ struct frame
275 /* Canonical X unit. Width of default font, in pixels. */ 275 /* Canonical X unit. Width of default font, in pixels. */
276 int column_width; 276 int column_width;
277 277
278 /* Widht of space glyph of default font, in pixels. */
279 int space_width;
280
278 /* Canonical Y unit. Height of a line, in pixels. */ 281 /* Canonical Y unit. Height of a line, in pixels. */
279 int line_height; 282 int line_height;
280 283
@@ -825,10 +828,14 @@ extern Lisp_Object selected_frame;
825#define FRAME_LINE_HEIGHT(F) ((F)->line_height) 828#define FRAME_LINE_HEIGHT(F) ((F)->line_height)
826 829
827/* Canonical x-unit on frame F. 830/* Canonical x-unit on frame F.
828 This value currently equals the width of the default font of F. */ 831 This value currently equals the average width of the default font of F. */
829 832
830#define FRAME_COLUMN_WIDTH(F) ((F)->column_width) 833#define FRAME_COLUMN_WIDTH(F) ((F)->column_width)
831 834
835/* Space glyph width of the default font of frame F. */
836
837#define FRAME_SPACE_WIDTH(F) ((F)->space_width)
838
832 839
833/* Pixel width of areas used to display truncation marks, continuation 840/* Pixel width of areas used to display truncation marks, continuation
834 marks, overlay arrows. This is 0 for terminal frames. */ 841 marks, overlay arrows. This is 0 for terminal frames. */