diff options
| author | Richard M. Stallman | 1993-03-12 06:22:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-03-12 06:22:11 +0000 |
| commit | 6d05db8169016668035643f1da1c762d09c3eedf (patch) | |
| tree | 18961eef899c154f9525c7fd5a16179433bd3cf3 /src | |
| parent | 7da99777446e018cfe2eac5659034568db52a303 (diff) | |
| download | emacs-6d05db8169016668035643f1da1c762d09c3eedf.tar.gz emacs-6d05db8169016668035643f1da1c762d09c3eedf.zip | |
(FRAME_MENU_BAR_ITEMS): New macro (two versions).
(struct frame): New field menu_bar_items.
(FRAME_MENU_BAR_LINES): New macro (two versions).
(struct frame): New field menu_bar_lines.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index 4c60e880799..704368f4127 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -132,6 +132,8 @@ struct frame | |||
| 132 | Lisp_Object scroll_bars; | 132 | Lisp_Object scroll_bars; |
| 133 | Lisp_Object condemned_scroll_bars; | 133 | Lisp_Object condemned_scroll_bars; |
| 134 | 134 | ||
| 135 | Lisp_Object menu_bar_items; | ||
| 136 | |||
| 135 | /* The output method says how the contents of this frame | 137 | /* The output method says how the contents of this frame |
| 136 | are displayed. It could be using termcap, or using an X window. */ | 138 | are displayed. It could be using termcap, or using an X window. */ |
| 137 | enum output_method output_method; | 139 | enum output_method output_method; |
| @@ -141,6 +143,9 @@ struct frame | |||
| 141 | it is defined in xterm.h. */ | 143 | it is defined in xterm.h. */ |
| 142 | union display { struct x_display *x; int nothing; } display; | 144 | union display { struct x_display *x; int nothing; } display; |
| 143 | 145 | ||
| 146 | /* Number of lines of menu bar. */ | ||
| 147 | int menu_bar_lines; | ||
| 148 | |||
| 144 | /* Nonzero if last attempt at redisplay on this frame was preempted. */ | 149 | /* Nonzero if last attempt at redisplay on this frame was preempted. */ |
| 145 | char display_preempted; | 150 | char display_preempted; |
| 146 | 151 | ||
| @@ -242,6 +247,7 @@ typedef struct frame *FRAME_PTR; | |||
| 242 | #define FRAME_WIDTH(f) (f)->width | 247 | #define FRAME_WIDTH(f) (f)->width |
| 243 | #define FRAME_NEW_HEIGHT(f) (f)->new_height | 248 | #define FRAME_NEW_HEIGHT(f) (f)->new_height |
| 244 | #define FRAME_NEW_WIDTH(f) (f)->new_width | 249 | #define FRAME_NEW_WIDTH(f) (f)->new_width |
| 250 | #define FRAME_MENU_BAR_LINES(f) (f)->menu_bar_lines | ||
| 245 | #define FRAME_CURSOR_X(f) (f)->cursor_x | 251 | #define FRAME_CURSOR_X(f) (f)->cursor_x |
| 246 | #define FRAME_CURSOR_Y(f) (f)->cursor_y | 252 | #define FRAME_CURSOR_Y(f) (f)->cursor_y |
| 247 | #define FRAME_VISIBLE_P(f) ((f)->visible != 0) | 253 | #define FRAME_VISIBLE_P(f) ((f)->visible != 0) |
| @@ -267,6 +273,7 @@ typedef struct frame *FRAME_PTR; | |||
| 267 | #define FRAME_HAS_VERTICAL_SCROLL_BARS(f) ((f)->has_vertical_scroll_bars) | 273 | #define FRAME_HAS_VERTICAL_SCROLL_BARS(f) ((f)->has_vertical_scroll_bars) |
| 268 | #define FRAME_SCROLL_BARS(f) ((f)->scroll_bars) | 274 | #define FRAME_SCROLL_BARS(f) ((f)->scroll_bars) |
| 269 | #define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars) | 275 | #define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars) |
| 276 | #define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items) | ||
| 270 | 277 | ||
| 271 | /* Emacs's redisplay code could become confused if a frame's | 278 | /* Emacs's redisplay code could become confused if a frame's |
| 272 | visibility changes at arbitrary times. For example, if a frame is | 279 | visibility changes at arbitrary times. For example, if a frame is |
| @@ -371,6 +378,7 @@ extern int last_nonminibuf_frame; | |||
| 371 | #define FRAME_WIDTH(f) (the_only_frame.width) | 378 | #define FRAME_WIDTH(f) (the_only_frame.width) |
| 372 | #define FRAME_NEW_HEIGHT(f) (the_only_frame.new_height) | 379 | #define FRAME_NEW_HEIGHT(f) (the_only_frame.new_height) |
| 373 | #define FRAME_NEW_WIDTH(f) (the_only_frame.new_width) | 380 | #define FRAME_NEW_WIDTH(f) (the_only_frame.new_width) |
| 381 | #define FRAME_MENU_BAR_LINES(f) (the_only_frame.menu_bar_lines) | ||
| 374 | #define FRAME_CURSOR_X(f) (the_only_frame.cursor_x) | 382 | #define FRAME_CURSOR_X(f) (the_only_frame.cursor_x) |
| 375 | #define FRAME_CURSOR_Y(f) (the_only_frame.cursor_y) | 383 | #define FRAME_CURSOR_Y(f) (the_only_frame.cursor_y) |
| 376 | #define FRAME_SET_VISIBLE(f,p) (p) | 384 | #define FRAME_SET_VISIBLE(f,p) (p) |
| @@ -396,6 +404,7 @@ extern int last_nonminibuf_frame; | |||
| 396 | (the_only_frame.has_vertical_scroll_bars) | 404 | (the_only_frame.has_vertical_scroll_bars) |
| 397 | #define FRAME_SCROLL_BARS(f) (the_only_frame.scroll_bars) | 405 | #define FRAME_SCROLL_BARS(f) (the_only_frame.scroll_bars) |
| 398 | #define FRAME_CONDEMNED_SCROLL_BARS(f) (the_only_frame.condemned_scroll_bars) | 406 | #define FRAME_CONDEMNED_SCROLL_BARS(f) (the_only_frame.condemned_scroll_bars) |
| 407 | #define FRAME_MENU_BAR_ITEMS(f) (the_only_frame.menu_bar_items) | ||
| 399 | 408 | ||
| 400 | /* See comments in definition above. */ | 409 | /* See comments in definition above. */ |
| 401 | #define FRAME_SAMPLE_VISIBILITY(f) (0) | 410 | #define FRAME_SAMPLE_VISIBILITY(f) (0) |