aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-02-20 06:49:29 +0000
committerKarl Heuer1997-02-20 06:49:29 +0000
commit81d0083108ca961a734237c61b77f68583fb6f52 (patch)
treef0e242c7608ca299ee6ca13884f6ac501452c016 /src
parent71025e5e1d69b9749c1c64668c69386f1f07f601 (diff)
downloademacs-81d0083108ca961a734237c61b77f68583fb6f52.tar.gz
emacs-81d0083108ca961a734237c61b77f68583fb6f52.zip
(struct frame): New member `fontset_data'.
(FRAME_MESSAGE_BUF_SIZE): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/frame.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index 404dfcdfb04..47970c3d6db 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -290,6 +290,11 @@ struct frame
290 /* The baud rate that was used to calculate costs for this frame. */ 290 /* The baud rate that was used to calculate costs for this frame. */
291 int cost_calculation_baud_rate; 291 int cost_calculation_baud_rate;
292 292
293 /* A pointer to the data structure containing all information of
294 fontsets associated with this frame. See the comments in
295 fontset.h for more detail. */
296 struct fontset_data *fontset_data;
297
293 /* Nonzero if the mouse has moved on this display 298 /* Nonzero if the mouse has moved on this display
294 since the last time we checked. */ 299 since the last time we checked. */
295 char mouse_moved; 300 char mouse_moved;
@@ -390,6 +395,12 @@ typedef struct frame *FRAME_PTR;
390#define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars) 395#define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars)
391#define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items) 396#define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items)
392#define FRAME_COST_BAUD_RATE(f) ((f)->cost_calculation_baud_rate) 397#define FRAME_COST_BAUD_RATE(f) ((f)->cost_calculation_baud_rate)
398#define FRAME_FONTSET_DATA(f) ((f)->fontset_data)
399
400/* Return the size of message_buf of the frame F. We multiply the
401 width of the frame by 4 because multi-byte form may require at most
402 4-byte for a character. */
403#define FRAME_MESSAGE_BUF_SIZE(f) (((int) (f)->width) * 4)
393 404
394/* Emacs's redisplay code could become confused if a frame's 405/* Emacs's redisplay code could become confused if a frame's
395 visibility changes at arbitrary times. For example, if a frame is 406 visibility changes at arbitrary times. For example, if a frame is