aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.h
diff options
context:
space:
mode:
authorAdrian Robert2008-07-15 18:15:18 +0000
committerAdrian Robert2008-07-15 18:15:18 +0000
commitedfda78355c5528eee489fa8a7f9c73bf8e734f2 (patch)
tree78d2414d9791e1efc17ec9b35b438ae35602340a /src/frame.h
parent1391cd548782097e34d7856ec4f20ca90bdf2c26 (diff)
downloademacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.tar.gz
emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.zip
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/frame.h b/src/frame.h
index 941b9a90a26..b744c9e56b6 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -50,7 +50,8 @@ enum output_method
50 output_x_window, 50 output_x_window,
51 output_msdos_raw, 51 output_msdos_raw,
52 output_w32, 52 output_w32,
53 output_mac 53 output_mac,
54 output_ns
54}; 55};
55 56
56enum vertical_scroll_bar_type 57enum vertical_scroll_bar_type
@@ -242,7 +243,7 @@ struct frame
242 auto-resize-tool-bar is set to grow-only. */ 243 auto-resize-tool-bar is set to grow-only. */
243 unsigned minimize_tool_bar_window_p : 1; 244 unsigned minimize_tool_bar_window_p : 1;
244 245
245#if defined (USE_GTK) || defined (MAC_OS) 246#if defined (USE_GTK) || defined (HAVE_NS) || defined (MAC_OS)
246 /* Nonzero means using a tool bar that comes from the toolkit. */ 247 /* Nonzero means using a tool bar that comes from the toolkit. */
247 int external_tool_bar; 248 int external_tool_bar;
248#endif 249#endif
@@ -332,6 +333,7 @@ struct frame
332 struct x_output *x; /* xterm.h */ 333 struct x_output *x; /* xterm.h */
333 struct w32_output *w32; /* w32term.h */ 334 struct w32_output *w32; /* w32term.h */
334 struct mac_output *mac; /* macterm.h */ 335 struct mac_output *mac; /* macterm.h */
336 struct ns_output *ns; /* nsterm.h */
335 EMACS_INT nothing; 337 EMACS_INT nothing;
336 } 338 }
337 output_data; 339 output_data;
@@ -359,7 +361,7 @@ struct frame
359 int menu_bar_lines; 361 int menu_bar_lines;
360 362
361#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \ 363#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \
362 || defined (USE_GTK) 364 || defined (HAVE_NS) || defined (USE_GTK)
363 /* Nonzero means using a menu bar that comes from the X toolkit. */ 365 /* Nonzero means using a menu bar that comes from the X toolkit. */
364 unsigned int external_menu_bar : 1; 366 unsigned int external_menu_bar : 1;
365#endif 367#endif
@@ -519,6 +521,7 @@ typedef struct frame *FRAME_PTR;
519#define FRAME_W32_P(f) ((f)->output_method == output_w32) 521#define FRAME_W32_P(f) ((f)->output_method == output_w32)
520#define FRAME_MSDOS_P(f) ((f)->output_method == output_msdos_raw) 522#define FRAME_MSDOS_P(f) ((f)->output_method == output_msdos_raw)
521#define FRAME_MAC_P(f) ((f)->output_method == output_mac) 523#define FRAME_MAC_P(f) ((f)->output_method == output_mac)
524#define FRAME_NS_P(f) ((f)->output_method == output_ns)
522 525
523/* FRAME_WINDOW_P tests whether the frame is a window, and is 526/* FRAME_WINDOW_P tests whether the frame is a window, and is
524 defined to be the predicate for the window system being used. */ 527 defined to be the predicate for the window system being used. */
@@ -532,6 +535,9 @@ typedef struct frame *FRAME_PTR;
532#ifdef MAC_OS 535#ifdef MAC_OS
533#define FRAME_WINDOW_P(f) FRAME_MAC_P (f) 536#define FRAME_WINDOW_P(f) FRAME_MAC_P (f)
534#endif 537#endif
538#ifdef HAVE_NS
539#define FRAME_WINDOW_P(f) FRAME_NS_P(f)
540#endif
535#ifndef FRAME_WINDOW_P 541#ifndef FRAME_WINDOW_P
536#define FRAME_WINDOW_P(f) (0) 542#define FRAME_WINDOW_P(f) (0)
537#endif 543#endif
@@ -570,7 +576,7 @@ typedef struct frame *FRAME_PTR;
570 576
571/* Nonzero if this frame should display a tool bar 577/* Nonzero if this frame should display a tool bar
572 in a way that does not use any text lines. */ 578 in a way that does not use any text lines. */
573#if defined (USE_GTK) || defined (MAC_OS) 579#if defined (USE_GTK) || defined (HAVE_NS) || defined (MAC_OS)
574#define FRAME_EXTERNAL_TOOL_BAR(f) (f)->external_tool_bar 580#define FRAME_EXTERNAL_TOOL_BAR(f) (f)->external_tool_bar
575#else 581#else
576#define FRAME_EXTERNAL_TOOL_BAR(f) 0 582#define FRAME_EXTERNAL_TOOL_BAR(f) 0
@@ -589,7 +595,7 @@ typedef struct frame *FRAME_PTR;
589/* Nonzero if this frame should display a menu bar 595/* Nonzero if this frame should display a menu bar
590 in a way that does not use any text lines. */ 596 in a way that does not use any text lines. */
591#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \ 597#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \
592 || defined (USE_GTK) 598 || defined (HAVE_NS) || defined (USE_GTK)
593#define FRAME_EXTERNAL_MENU_BAR(f) (f)->external_menu_bar 599#define FRAME_EXTERNAL_MENU_BAR(f) (f)->external_menu_bar
594#else 600#else
595#define FRAME_EXTERNAL_MENU_BAR(f) 0 601#define FRAME_EXTERNAL_MENU_BAR(f) 0
@@ -1044,7 +1050,7 @@ extern Lisp_Object Qleft_fringe, Qright_fringe;
1044extern Lisp_Object Qheight, Qwidth; 1050extern Lisp_Object Qheight, Qwidth;
1045extern Lisp_Object Qminibuffer, Qmodeline; 1051extern Lisp_Object Qminibuffer, Qmodeline;
1046extern Lisp_Object Qonly; 1052extern Lisp_Object Qonly;
1047extern Lisp_Object Qx, Qw32, Qmac, Qpc; 1053extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns;
1048extern Lisp_Object Qvisible; 1054extern Lisp_Object Qvisible;
1049extern Lisp_Object Qdisplay_type; 1055extern Lisp_Object Qdisplay_type;
1050extern Lisp_Object Qbackground_mode; 1056extern Lisp_Object Qbackground_mode;