comparison src/frame.h @ 12665:427a3d6560bf

(struct frame): Rename `display' member to `output_data'. Use new data type name for output_data.x.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Jul 1995 21:14:46 +0000
parents 13aa3e939a4d
children 58efb2561888
comparison
equal deleted inserted replaced
12664:ce1cae301efe 12665:427a3d6560bf
169 /* The output method says how the contents of this frame 169 /* The output method says how the contents of this frame
170 are displayed. It could be using termcap, or using an X window. */ 170 are displayed. It could be using termcap, or using an X window. */
171 enum output_method output_method; 171 enum output_method output_method;
172 172
173 /* A structure of auxiliary data used for displaying the contents. 173 /* A structure of auxiliary data used for displaying the contents.
174 struct x_display is used for X window frames; 174 struct x_output is used for X window frames;
175 it is defined in xterm.h. */ 175 it is defined in xterm.h. */
176 union display { struct x_display *x; int nothing; } display; 176 union output_data { struct x_output *x; int nothing; } output_data;
177 177
178 #ifdef MULTI_KBOARD 178 #ifdef MULTI_KBOARD
179 /* A pointer to the kboard structure associated with this frame. 179 /* A pointer to the kboard structure associated with this frame.
180 For termcap frames, this points to initial_kboard. For X frames, 180 For termcap frames, this points to initial_kboard. For X frames,
181 it will be the same as display.x->display_info->kboard. */ 181 it will be the same as display.x->display_info->kboard. */
298 #define XFRAME(p) ((struct frame *) XPNTR (p)) 298 #define XFRAME(p) ((struct frame *) XPNTR (p))
299 #define XSETFRAME(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_FRAME)) 299 #define XSETFRAME(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_FRAME))
300 300
301 #define WINDOW_FRAME(w) (w)->frame 301 #define WINDOW_FRAME(w) (w)->frame
302 302
303 #define FRAME_LIVE_P(f) ((f)->display.nothing != 0) 303 #define FRAME_LIVE_P(f) ((f)->output_data.nothing != 0)
304 #define FRAME_TERMCAP_P(f) ((f)->output_method == output_termcap) 304 #define FRAME_TERMCAP_P(f) ((f)->output_method == output_termcap)
305 #define FRAME_X_P(f) ((f)->output_method == output_x_window) 305 #define FRAME_X_P(f) ((f)->output_method == output_x_window)
306 #define FRAME_MINIBUF_ONLY_P(f) \ 306 #define FRAME_MINIBUF_ONLY_P(f) \
307 EQ (FRAME_ROOT_WINDOW (f), FRAME_MINIBUF_WINDOW (f)) 307 EQ (FRAME_ROOT_WINDOW (f), FRAME_MINIBUF_WINDOW (f))
308 #define FRAME_HAS_MINIBUF_P(f) ((f)->has_minibuffer) 308 #define FRAME_HAS_MINIBUF_P(f) ((f)->has_minibuffer)