annotate src/frame.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 501cfd01ee6d
children 95016f13131a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Define frame-object for XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1988, 1992, 1993, 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.30. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
23 #ifndef _XEMACS_FRAME_H_
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
24 #define _XEMACS_FRAME_H_
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
26 #ifdef HAVE_SCROLLBARS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 #include "scrollbar.h"
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
28 #endif
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
29
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
30 #ifdef HAVE_TOOLBARS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #include "toolbar.h"
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
32 #endif
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
33
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #include "device.h"
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
35 #include "glyphs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 #define FRAME_TYPE_NAME(f) ((f)->framemeths->name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #define FRAME_TYPE(f) ((f)->framemeths->symbol)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 /******** Accessing / calling a frame method *********/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #define HAS_FRAMEMETH_P(f, m) HAS_CONTYPE_METH_P ((f)->framemeths, m)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #define FRAMEMETH(f, m, args) CONTYPE_METH ((f)->framemeths, m, args)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 #define MAYBE_FRAMEMETH(f, m, args) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 MAYBE_CONTYPE_METH ((f)->framemeths, m, args)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 #define FRAMEMETH_OR_GIVEN(f, m, args, given) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 CONTYPE_METH_OR_GIVEN((f)->framemeths, m, args, given)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 struct frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 struct lcrecord_header header;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 /* Methods for this frame's console. This can also be retrieved
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 through frame->device->console, but it's faster this way. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 struct console_methods *framemeths;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
57 /* Size of text only area of this frame, excluding scrollbars,
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
58 toolbars and end of line glyphs. The size can be in characters
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
59 or pixels, depending on units in which window system resizes
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
60 its windows */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
61 int height, width;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
63 /* New height and width for pending size change, in the same units
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
64 as above. 0 if no change pending. */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
65 int new_height, new_width;
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
66
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
67 /* Size of text-only are of the frame, in default font characters.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
68 This may be inaccurate due to rounding error */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
69 int char_height, char_width;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
70
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
71 /* Size of the whole frame, including scrollbars, toolbars and end
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
72 of line glyphs, in pixels */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
73 int pixheight, pixwidth;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
75 #ifdef HAVE_TTY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
76 /* The count of frame number. This applies to TTY frames only. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
77 int order_count;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
78 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
79
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 /* Width of the internal border. This is a line of background color
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 just inside the window's border. It is normally only non-zero on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 X frames, but we put it here to avoid introducing window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 dependencies. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 int internal_border_width;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 /* This frame's root window mirror. This structure exactly mirrors
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 the frame's window structure but contains only pointers to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 display structures. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 struct window_mirror *root_mirror;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 int modiff;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
93 /* subwindow cache elements for this frame */
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
94 subwindow_cachel_dynarr *subwindow_cachels;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
95
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 #ifdef HAVE_SCROLLBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 /* frame-local scrollbar information. See scrollbar.c. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 int scrollbar_y_offset;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 /* cache of created scrollbars */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 struct scrollbar_instance *sb_vcache;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 struct scrollbar_instance *sb_hcache;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 #ifdef HAVE_TOOLBARS
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
106 /* Size of toolbars as seen by redisplay. This is used to determine
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
107 whether to re-layout windows by a call to change_frame_size early
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
108 in redisplay_frame. */
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
109 unsigned int current_toolbar_size[4];
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 /* A structure of auxiliary data specific to the device type.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 struct x_frame is used for X window frames; defined in console-x.h */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 void *frame_data;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
116 #define FRAME_SLOT_DECLARATION
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 #define MARKED_SLOT(x) Lisp_Object x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 #include "frameslots.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
120 /* Nonzero if frame is currently displayed.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
121 Mutually exclusive with iconified
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
122 JV: This now a tristate flag:
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
123 Value : Emacs meaning :f-v-p : X meaning
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
124 0 : not displayed : nil : unmapped
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
125 >0 : user can access it,needs repainting : t : mapped and visible
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
126 <0 : user can access it,needs no repainting : hidden :mapped and invisible
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
127 where f-v-p is the return value of frame-visible-p */
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
128 int visible;
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 74
diff changeset
129
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 /* one-bit flags: */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 /* Are we finished initializing? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 unsigned int init_finished :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 /* Is frame marked for deletion? This is used in XSetErrorHandler(). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 unsigned int being_deleted :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 /* Nonzero if this frame has been destroyed. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 unsigned int dead :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 /* Nonzero if last attempt at redisplay on this frame was preempted. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 unsigned int display_preempted :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 /* Nonzero if window is currently iconified.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 This and visible are mutually exclusive. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 unsigned int iconified :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 /* Nonzero if this frame should be cleared and then redrawn.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 Setting this will also effectively set frame_changed. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 unsigned int clear :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 /* True if frame actually has a minibuffer window on it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 0 if using a minibuffer window that isn't on this frame. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 unsigned int has_minibuffer :1;
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 149
diff changeset
155
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 /* True if frame's root window can't be split. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 unsigned int no_split :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 unsigned int top_toolbar_was_visible :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 unsigned int bottom_toolbar_was_visible :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 unsigned int left_toolbar_was_visible :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 unsigned int right_toolbar_was_visible :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 /* redisplay flags */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 unsigned int buffers_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 unsigned int clip_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 unsigned int extents_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 unsigned int faces_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 unsigned int frame_changed :1;
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
170 unsigned int subwindows_changed :1;
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
171 unsigned int glyphs_changed :1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 unsigned int icon_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 unsigned int menubar_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 unsigned int modeline_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 unsigned int point_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 unsigned int size_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 unsigned int toolbar_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 unsigned int windows_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 unsigned int windows_structure_changed :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 unsigned int window_face_cache_reset :1; /* used by expose handler */
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
181 unsigned int echo_area_garbaged :1; /* used by Fredisplay_echo_area */
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
182 unsigned int size_slipped :1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 unsigned int size_change_pending :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 unsigned int mirror_dirty :1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 /* flag indicating if any window on this frame is displaying a subwindow */
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
188 unsigned int subwindows_being_displayed :1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
191 EXFUN (Fdelete_frame, 2);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
192 EXFUN (Fframe_iconified_p, 1);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
193 EXFUN (Fframe_name, 1);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
194 EXFUN (Fframe_property, 3);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
195 EXFUN (Fmake_frame, 2);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
196 EXFUN (Fmake_frame_visible, 1);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
197 EXFUN (Fraise_frame, 1);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
198 EXFUN (Fselect_frame, 1);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
199 EXFUN (Fset_frame_pointer, 2);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
200 EXFUN (Fset_frame_position, 3);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
201 EXFUN (Fset_frame_size, 4);
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
202
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
203 extern Lisp_Object Qbackground_toolbar_color, Qbell_volume, Qborder_color;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
204 extern Lisp_Object Qborder_width, Qbottom_toolbar_shadow_color;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
205 extern Lisp_Object Qbottom_toolbar_shadow_pixmap, Qdelete_frame;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
206 extern Lisp_Object Qdeselect_frame_hook, Qdrag_and_drop_functions, Qgc_pointer;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
207 extern Lisp_Object Qiconic, Qinitially_unmapped, Qinter_line_space;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
208 extern Lisp_Object Qinternal_border_width, Qinvisible, Qmap_frame_hook;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
209 extern Lisp_Object Qminibuffer, Qmodeline_pointer, Qmouse_enter_frame_hook;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
210 extern Lisp_Object Qmouse_leave_frame_hook, Qpointer_background;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
211 extern Lisp_Object Qpointer_color, Qpopup, Qscrollbar_placement;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
212 extern Lisp_Object Qselect_frame_hook, Qspace_pointer;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
213 extern Lisp_Object Qsynchronize_minibuffers, Qtext_pointer;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
214 extern Lisp_Object Qtoolbar_shadow_thickness, Qtop_toolbar_shadow_color;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
215 extern Lisp_Object Qtop_toolbar_shadow_pixmap, Qunmap_frame_hook;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
216 extern Lisp_Object Qunsplittable, Quse_backing_store, Qvisible, Qvisual_bell;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
217 extern Lisp_Object Vframe_icon_title_format, Vframe_title_format;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
218 extern Lisp_Object Vmouse_motion_handler;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
219
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 DECLARE_LRECORD (frame, struct frame);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 #define XFRAME(x) XRECORD (x, frame, struct frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 #define XSETFRAME(x, p) XSETRECORD (x, p, frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 #define FRAMEP(x) RECORDP (x, frame)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
225 #define GC_FRAMEP(x) GC_RECORDP (x, frame)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 #define CHECK_FRAME(x) CHECK_RECORD (x, frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 #define CONCHECK_FRAME(x) CONCHECK_RECORD (x, frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
229 #define CHECK_LIVE_FRAME(x) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
230 CHECK_FRAME (x); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
231 if (! FRAME_LIVE_P (XFRAME (x))) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
232 dead_wrong_type_argument (Qframe_live_p, (x)); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
233 } while (0)
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
234 #define CONCHECK_LIVE_FRAME(x) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
235 CONCHECK_FRAME (x); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
236 if (! FRAME_LIVE_P (XFRAME (x))) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
237 x = wrong_type_argument (Qframe_live_p, (x)); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
238 } while (0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 #define FRAME_TYPE_P(f, type) EQ (FRAME_TYPE (f), Q##type)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 #ifdef ERROR_CHECK_TYPECHECK
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
243 INLINE struct frame *
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
244 error_check_frame_type (struct frame * f, Lisp_Object sym);
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
245 INLINE struct frame *
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
246 error_check_frame_type (struct frame * f, Lisp_Object sym)
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
247 {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
248 assert (EQ (FRAME_TYPE (f), sym));
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
249 return f;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
250 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 # define FRAME_TYPE_DATA(f, type) \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
252 ((struct type##_frame *) (error_check_frame_type (f, Q##type))->frame_data)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 # define FRAME_TYPE_DATA(f, type) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ((struct type##_frame *) (f)->frame_data)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 #define CHECK_FRAME_TYPE(x, type) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 do { \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 CHECK_FRAME (x); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 if (!FRAME_TYPE_P (XFRAME (x), type)) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 dead_wrong_type_argument \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 (type##_console_methods->predicate_symbol, x); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 } while (0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 #define CONCHECK_FRAME_TYPE(x, type) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 do { \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 CONCHECK_FRAME (x); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 if (!FRAME_TYPE_P (XFRAME (x), type)) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 x = wrong_type_argument \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 (type##_console_methods->predicate_symbol, x); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 } while (0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 /* #### These should be in the frame-*.h files but there are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 too many places where the abstraction is broken. Need to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 fix. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 #define FRAME_X_P(frm) CONSOLE_TYPESYM_X_P (FRAME_TYPE (frm))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 #define CHECK_X_FRAME(z) CHECK_FRAME_TYPE (z, x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 #define CONCHECK_X_FRAME(z) CONCHECK_FRAME_TYPE (z, x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 #define FRAME_TTY_P(frm) CONSOLE_TYPESYM_TTY_P (FRAME_TYPE (frm))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 #define CHECK_TTY_FRAME(z) CHECK_FRAME_TYPE (z, tty)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 #define CONCHECK_TTY_FRAME(z) CONCHECK_FRAME_TYPE (z, tty)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 #define FRAME_STREAM_P(frm) CONSOLE_TYPESYM_STREAM_P (FRAME_TYPE (frm))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 #define CHECK_STREAM_FRAME(z) CHECK_FRAME_TYPE (z, stream)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 #define CONCHECK_STREAM_FRAME(z) CONCHECK_FRAME_TYPE (z, stream)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 #define FRAME_WIN_P(frm) CONSOLE_TYPESYM_WIN_P (FRAME_TYPE (frm))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 extern int frame_changed;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
293 #define MARK_FRAME_FACES_CHANGED(f) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
294 struct frame *mffc_f = (f); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
295 mffc_f->faces_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
296 mffc_f->modiff++; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
297 if (!NILP (mffc_f->device)) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
298 { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
299 struct device *mffc_d = XDEVICE (mffc_f->device); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
300 MARK_DEVICE_FACES_CHANGED (mffc_d); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
301 } \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
302 else \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
303 faces_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
304 } while (0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
306 #define MARK_FRAME_GLYPHS_CHANGED(f) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
307 struct frame *mfgc_f = (f); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
308 mfgc_f->glyphs_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
309 mfgc_f->modiff++; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
310 if (!NILP (mfgc_f->device)) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
311 { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
312 struct device *mfgc_d = XDEVICE (mfgc_f->device); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
313 MARK_DEVICE_GLYPHS_CHANGED (mfgc_d); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
314 } \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
315 else \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
316 glyphs_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
317 } while (0)
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
318
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
319 #define MARK_FRAME_SUBWINDOWS_CHANGED(f) do { \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
320 struct frame *mfgc_f = (f); \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
321 mfgc_f->subwindows_changed = 1; \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
322 mfgc_f->modiff++; \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
323 if (!NILP (mfgc_f->device)) \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
324 { \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
325 struct device *mfgc_d = XDEVICE (mfgc_f->device); \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
326 MARK_DEVICE_SUBWINDOWS_CHANGED (mfgc_d); \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
327 } \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
328 else \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
329 subwindows_changed = 1; \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
330 } while (0)
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
331
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
332 #define MARK_FRAME_TOOLBARS_CHANGED(f) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
333 struct frame *mftc_f = (f); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
334 mftc_f->toolbar_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
335 mftc_f->modiff++; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
336 if (!NILP (mftc_f->device)) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
337 { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
338 struct device *mftc_d = XDEVICE (mftc_f->device); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
339 MARK_DEVICE_TOOLBARS_CHANGED (mftc_d); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
340 } \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
341 else \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
342 toolbar_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
343 } while (0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
345 #define MARK_FRAME_SIZE_CHANGED(f) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
346 struct frame *mfsc_f = (f); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
347 mfsc_f->size_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
348 mfsc_f->size_change_pending = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
349 mfsc_f->modiff++; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
350 if (!NILP (mfsc_f->device)) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
351 { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
352 struct device *mfsc_d = XDEVICE (mfsc_f->device); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
353 MARK_DEVICE_SIZE_CHANGED (mfsc_d); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
354 } \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
355 else \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
356 size_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
357 } while (0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
359 #define MARK_FRAME_CHANGED(f) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
360 struct frame *mfc_f = (f); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
361 mfc_f->frame_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
362 mfc_f->modiff++; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
363 if (!NILP (mfc_f->device)) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
364 { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
365 struct device *mfc_d = XDEVICE (mfc_f->device); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
366 MARK_DEVICE_FRAME_CHANGED (mfc_d); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
367 } \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
368 else \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
369 frame_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
370 } while (0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
372 #define MARK_FRAME_WINDOWS_CHANGED(f) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
373 struct frame *mfwc_f = (f); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
374 mfwc_f->windows_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
375 mfwc_f->modiff++; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
376 if (!NILP (mfwc_f->device)) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
377 { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
378 struct device *mfwc_d = XDEVICE (mfwc_f->device); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
379 MARK_DEVICE_WINDOWS_CHANGED (mfwc_d); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
380 } \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
381 else \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
382 windows_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
383 } while (0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
385 #define MARK_FRAME_WINDOWS_STRUCTURE_CHANGED(f) do { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
386 struct frame *fwsc_f = (f); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
387 fwsc_f->windows_structure_changed = 1; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
388 fwsc_f->modiff++; \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
389 if (!NILP (fwsc_f->device)) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
390 { \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
391 struct device *fwsc_d = XDEVICE (fwsc_f->device); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
392 MARK_DEVICE_WINDOWS_STRUCTURE_CHANGED (fwsc_d); \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
393 } \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
394 else \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
395 windows_structure_changed = 1; \
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
396 invalidate_vertical_divider_cache_in_frame (fwsc_f); \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
397 } while (0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
399 #define MARK_FRAME_SIZE_SLIPPED(f) do { \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
400 struct frame *fwsc_f = (f); \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
401 fwsc_f->size_slipped = 1; \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
402 fwsc_f->modiff++; \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
403 if (!NILP (fwsc_f->device)) \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
404 { \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
405 struct device *fwsc_d = XDEVICE (fwsc_f->device); \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
406 MARK_DEVICE_FRAME_CHANGED (fwsc_d); \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
407 } \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
408 else \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
409 frame_changed = 1; \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
410 } while (0)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
411
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
412 #define CLEAR_FRAME_SIZE_SLIPPED(f) do { \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
413 struct frame *fwsc_f = (f); \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
414 fwsc_f->size_slipped = 0; \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
415 } while (0)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
416
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 #define SET_FRAME_CLEAR(f) MARK_FRAME_CHANGED (f); (f)->clear = 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 #define FRAME_DEVICE(f) ((f)->device)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 #define FRAME_CONSOLE(f) DEVICE_CONSOLE (XDEVICE (FRAME_DEVICE (f)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 #define FRAME_LIVE_P(f) (!(f)->dead)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 #define FRAME_MINIBUF_ONLY_P(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 EQ (FRAME_ROOT_WINDOW (f), FRAME_MINIBUF_WINDOW (f))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
424 #define FRAME_HAS_MINIBUF_P(f) ((f)->has_minibuffer)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
425 #define FRAME_HEIGHT(f) ((f)->height)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
426 #define FRAME_WIDTH(f) ((f)->width)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
427 #define FRAME_CHARHEIGHT(f) ((f)->char_height)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
428 #define FRAME_CHARWIDTH(f) ((f)->char_width)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
429 #define FRAME_PIXHEIGHT(f) ((f)->pixheight)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
430 #define FRAME_PIXWIDTH(f) ((f)->pixwidth)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 #ifdef HAVE_SCROLLBARS
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
432 #define FRAME_SCROLLBAR_WIDTH(f) \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
433 (NILP ((f)->vertical_scrollbar_visible_p) ? \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
434 0 : XINT ((f)->scrollbar_width))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
435 #define FRAME_SCROLLBAR_HEIGHT(f) \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
436 (NILP ((f)->horizontal_scrollbar_visible_p) ? \
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
437 0 : XINT ((f)->scrollbar_height))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 #define FRAME_SCROLLBAR_WIDTH(f) 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 #define FRAME_SCROLLBAR_HEIGHT(f) 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
443 #define FW_FRAME(obj) \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
444 (WINDOWP (obj) ? WINDOW_FRAME (XWINDOW (obj)) \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
445 : (FRAMEP (obj) ? obj \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
446 : Qnil))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
447
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 #define FRAME_NEW_HEIGHT(f) ((f)->new_height)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 #define FRAME_NEW_WIDTH(f) ((f)->new_width)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 #define FRAME_CURSOR_X(f) ((f)->cursor_x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 #define FRAME_CURSOR_Y(f) ((f)->cursor_y)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 #define FRAME_VISIBLE_P(f) ((f)->visible)
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 149
diff changeset
453 #define FRAME_REPAINT_P(f) ((f)->visible>0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 #define FRAME_NO_SPLIT_P(f) ((f)->no_split)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 #define FRAME_ICONIFIED_P(f) ((f)->iconified)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 #define FRAME_FOCUS_FRAME(f) ((f)->focus_frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 #define FRAME_MINIBUF_WINDOW(f) ((f)->minibuffer_window)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 #define FRAME_ROOT_WINDOW(f) ((f)->root_window)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 /* Catch people attempting to set this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 #define FRAME_SELECTED_WINDOW(f) NON_LVALUE ((f)->selected_window)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 #define FRAME_LAST_NONMINIBUF_WINDOW(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 NON_LVALUE ((f)->last_nonminibuf_window)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 #define FRAME_SB_VCACHE(f) ((f)->sb_vcache)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 #define FRAME_SB_HCACHE(f) ((f)->sb_hcache)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
465 #define FRAME_SUBWINDOW_CACHE(f) ((f)->subwindow_cachels)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 #if 0 /* FSFmacs */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 #define FRAME_VISIBLE_P(f) ((f)->visible != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 #define FRAME_SET_VISIBLE(f,p) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 ((f)->async_visible = (p), FRAME_SAMPLE_VISIBILITY (f))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 /* Emacs's redisplay code could become confused if a frame's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 visibility changes at arbitrary times. For example, if a frame is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 visible while the desired glyphs are being built, but becomes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 invisible before they are updated, then some rows of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 desired_glyphs will be left marked as enabled after redisplay is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 complete, which should never happen. The next time the frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 becomes visible, redisplay will probably barf.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 Currently, there are no similar situations involving iconified, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 the principle is the same.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 So instead of having asynchronous input handlers directly set and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 clear the frame's visibility and iconification flags, they just set
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 the async_visible and async_iconified flags; the redisplay code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 calls the FRAME_SAMPLE_VISIBILITY macro before doing any redisplay,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 which sets visible and iconified from their asynchronous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 counterparts.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 Synchronous code must use the FRAME_SET_VISIBLE macro.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 Also, if a frame used to be invisible, but has just become visible,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 it must be marked as garbaged, since redisplay hasn't been keeping
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 up its contents. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 #define FRAME_SAMPLE_VISIBILITY(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 (((f)->async_visible && ! (f)->visible) ? SET_FRAME_GARBAGED (f) : 0, \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 (f)->visible = (f)->async_visible, \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 (f)->iconified = (f)->async_iconified)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 #endif /* FSFmacs */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 #define FRAME_BORDER_WIDTH(f) ((f)->internal_border_width)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 #define FRAME_BORDER_HEIGHT(f) ((f)->internal_border_width)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 /* This returns the frame-local value; that tells you what you should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 use when computing the frame size. It is *not* the actual toolbar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 size because that depends on the selected window. Use the macros
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 below for that.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 #ifdef HAVE_TOOLBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 #define FRAME_RAW_THEORETICAL_TOOLBAR_VISIBLE(f, pos) \
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
514 (!NILP((f)->toolbar_buttons[pos]) && !NILP ((f)->toolbar_visible_p[pos]))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 #define FRAME_RAW_THEORETICAL_TOOLBAR_SIZE(f, pos) \
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
516 (!NILP ((f)->toolbar_buttons[pos]) && INTP((f)->toolbar_size[pos]) ? \
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 235
diff changeset
517 (XINT ((f)->toolbar_size[pos])) : 0)
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
518 #define FRAME_RAW_THEORETICAL_TOOLBAR_BORDER_WIDTH(f, pos) \
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
519 (!NILP ((f)->toolbar_buttons[pos]) && INTP((f)->toolbar_border_width[pos]) ? \
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 235
diff changeset
520 (XINT ((f)->toolbar_border_width[pos])) : 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 #define FRAME_RAW_THEORETICAL_TOOLBAR_VISIBLE(f, pos) 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 #define FRAME_RAW_THEORETICAL_TOOLBAR_SIZE(f, pos) 0
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
524 #define FRAME_RAW_THEORETICAL_TOOLBAR_BORDER_WIDTH(f, pos) 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 #define FRAME_THEORETICAL_TOOLBAR_SIZE(f, pos) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 (FRAME_RAW_THEORETICAL_TOOLBAR_VISIBLE (f, pos) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 ? FRAME_RAW_THEORETICAL_TOOLBAR_SIZE (f, pos) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 : 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 #define FRAME_THEORETICAL_TOP_TOOLBAR_HEIGHT(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 FRAME_THEORETICAL_TOOLBAR_SIZE (f, TOP_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 #define FRAME_THEORETICAL_BOTTOM_TOOLBAR_HEIGHT(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 FRAME_THEORETICAL_TOOLBAR_SIZE (f, BOTTOM_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 #define FRAME_THEORETICAL_LEFT_TOOLBAR_WIDTH(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 FRAME_THEORETICAL_TOOLBAR_SIZE (f, LEFT_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 #define FRAME_THEORETICAL_RIGHT_TOOLBAR_WIDTH(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 FRAME_THEORETICAL_TOOLBAR_SIZE (f, RIGHT_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
541 #define FRAME_THEORETICAL_TOOLBAR_BORDER_WIDTH(f, pos) \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
542 (FRAME_RAW_THEORETICAL_TOOLBAR_VISIBLE (f, pos) \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
543 ? FRAME_RAW_THEORETICAL_TOOLBAR_BORDER_WIDTH (f, pos) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
544 : 0)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
545
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
546 #define FRAME_THEORETICAL_TOP_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
547 FRAME_THEORETICAL_TOOLBAR_BORDER_WIDTH (f, TOP_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
548 #define FRAME_THEORETICAL_BOTTOM_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
549 FRAME_THEORETICAL_TOOLBAR_BORDER_WIDTH (f, BOTTOM_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
550 #define FRAME_THEORETICAL_LEFT_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
551 FRAME_THEORETICAL_TOOLBAR_BORDER_WIDTH (f, LEFT_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
552 #define FRAME_THEORETICAL_RIGHT_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
553 FRAME_THEORETICAL_TOOLBAR_BORDER_WIDTH (f, RIGHT_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
554
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 /* This returns the window-local value rather than the frame-local value;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 that tells you about what's actually visible rather than what should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 be used when computing the frame size. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 #ifdef HAVE_TOOLBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 #define FRAME_RAW_REAL_TOOLBAR_VISIBLE(f, pos) \
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 263
diff changeset
561 (HAS_DEVMETH_P (XDEVICE (FRAME_DEVICE (f)), initialize_frame_toolbars) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 263
diff changeset
562 && !NILP (XWINDOW (FRAME_LAST_NONMINIBUF_WINDOW (f))->toolbar_visible_p[pos]))
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
563 #define FRAME_RAW_REAL_TOOLBAR_BORDER_WIDTH(f, pos) \
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
564 ((INTP (XWINDOW \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
565 (FRAME_LAST_NONMINIBUF_WINDOW (f))->toolbar_border_width[pos])) ? \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
566 (XINT (XWINDOW \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
567 (FRAME_LAST_NONMINIBUF_WINDOW (f))->toolbar_border_width[pos])) \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
568 : 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 #define FRAME_RAW_REAL_TOOLBAR_SIZE(f, pos) \
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
570 ((INTP (XWINDOW \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
571 (FRAME_LAST_NONMINIBUF_WINDOW (f))->toolbar_size[pos])) ? \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
572 (XINT (XWINDOW \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
573 (FRAME_LAST_NONMINIBUF_WINDOW (f))->toolbar_size[pos])) : 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 #define FRAME_REAL_TOOLBAR(f, pos) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 (XWINDOW (FRAME_LAST_NONMINIBUF_WINDOW (f))->toolbar[pos])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 #define FRAME_RAW_REAL_TOOLBAR_VISIBLE(f, pos) 0
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
578 #define FRAME_RAW_REAL_TOOLBAR_BORDER_WIDTH(f, pos) 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 #define FRAME_RAW_REAL_TOOLBAR_SIZE(f, pos) 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 #define FRAME_REAL_TOOLBAR(f, pos) Qnil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 /* Note to Chuck
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 Note to Chuck
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 Note to Chuck:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 The former definitions of FRAME_REAL_FOO_TOOLBAR_VISIBLE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 looked at the toolbar data to see what was there. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 current ones look at the current values of the specifiers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 This is a semantic change; the former definition returned
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 what was *actually* there right at the moment, while the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 current one returns what *ought* to be there once redisplay
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 has run to completion. I think this new definition is more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 correct in almost all circumstances and is much less likely
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 to lead to strange race conditions. I'm not completely
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 sure that there aren't some places in the redisplay code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 that use these macros and expect the former semantics, so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 if you encounter some odd toolbar behavior, you might want
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 to look into this. --ben */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
601 #define FRAME_REAL_TOOLBAR_VISIBLE(f, pos) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
602 ((!NILP (FRAME_REAL_TOOLBAR (f, pos)) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
603 && FRAME_RAW_REAL_TOOLBAR_SIZE (f, pos) > 0) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
604 ? FRAME_RAW_REAL_TOOLBAR_VISIBLE (f, pos) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 : 0)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
606 #define FRAME_REAL_TOOLBAR_SIZE(f, pos) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
607 ((!NILP (FRAME_REAL_TOOLBAR (f, pos)) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
608 && FRAME_RAW_REAL_TOOLBAR_VISIBLE (f, pos)) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
609 ? FRAME_RAW_REAL_TOOLBAR_SIZE (f, pos) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 : 0)
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
611 #define FRAME_REAL_TOOLBAR_BORDER_WIDTH(f, pos) \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
612 ((!NILP (FRAME_REAL_TOOLBAR (f, pos)) \
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 235
diff changeset
613 && FRAME_RAW_REAL_TOOLBAR_VISIBLE (f, pos)) \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
614 ? FRAME_RAW_REAL_TOOLBAR_BORDER_WIDTH (f, pos) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
615 : 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 #define FRAME_REAL_TOP_TOOLBAR_HEIGHT(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 FRAME_REAL_TOOLBAR_SIZE (f, TOP_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 #define FRAME_REAL_BOTTOM_TOOLBAR_HEIGHT(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 FRAME_REAL_TOOLBAR_SIZE (f, BOTTOM_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 #define FRAME_REAL_LEFT_TOOLBAR_WIDTH(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 FRAME_REAL_TOOLBAR_SIZE (f, LEFT_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 #define FRAME_REAL_RIGHT_TOOLBAR_WIDTH(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 FRAME_REAL_TOOLBAR_SIZE (f, RIGHT_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
626 #define FRAME_REAL_TOP_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
627 FRAME_REAL_TOOLBAR_BORDER_WIDTH (f, TOP_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
628 #define FRAME_REAL_BOTTOM_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
629 FRAME_REAL_TOOLBAR_BORDER_WIDTH (f, BOTTOM_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
630 #define FRAME_REAL_LEFT_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
631 FRAME_REAL_TOOLBAR_BORDER_WIDTH (f, LEFT_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
632 #define FRAME_REAL_RIGHT_TOOLBAR_BORDER_WIDTH(f) \
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
633 FRAME_REAL_TOOLBAR_BORDER_WIDTH (f, RIGHT_TOOLBAR)
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
634
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 #define FRAME_REAL_TOP_TOOLBAR_VISIBLE(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 FRAME_REAL_TOOLBAR_VISIBLE (f, TOP_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 #define FRAME_REAL_BOTTOM_TOOLBAR_VISIBLE(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 FRAME_REAL_TOOLBAR_VISIBLE (f, BOTTOM_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 #define FRAME_REAL_LEFT_TOOLBAR_VISIBLE(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 FRAME_REAL_TOOLBAR_VISIBLE (f, LEFT_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 #define FRAME_REAL_RIGHT_TOOLBAR_VISIBLE(f) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 FRAME_REAL_TOOLBAR_VISIBLE (f, RIGHT_TOOLBAR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
644 #define FRAME_TOP_BORDER_START(f) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
645 (FRAME_REAL_TOP_TOOLBAR_HEIGHT (f) + \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
646 2 * FRAME_REAL_TOP_TOOLBAR_BORDER_WIDTH (f))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
647 #define FRAME_TOP_BORDER_END(f) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 (FRAME_TOP_BORDER_START (f) + FRAME_BORDER_HEIGHT (f))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
650 #define FRAME_BOTTOM_BORDER_START(f) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
651 (FRAME_PIXHEIGHT (f) - FRAME_BORDER_HEIGHT (f) - \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
652 FRAME_REAL_BOTTOM_TOOLBAR_HEIGHT (f) - \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
653 2 * FRAME_REAL_BOTTOM_TOOLBAR_BORDER_WIDTH (f))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
654 #define FRAME_BOTTOM_BORDER_END(f) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
655 (FRAME_PIXHEIGHT (f) - FRAME_REAL_BOTTOM_TOOLBAR_HEIGHT (f) - \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
656 2 * FRAME_REAL_BOTTOM_TOOLBAR_BORDER_WIDTH (f))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
658 #define FRAME_LEFT_BORDER_START(f) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
659 (FRAME_REAL_LEFT_TOOLBAR_WIDTH (f) + \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
660 2 * FRAME_REAL_LEFT_TOOLBAR_BORDER_WIDTH (f))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
661 #define FRAME_LEFT_BORDER_END(f) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 (FRAME_LEFT_BORDER_START (f) + FRAME_BORDER_WIDTH (f))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
664 #define FRAME_RIGHT_BORDER_START(f) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
665 (FRAME_PIXWIDTH (f) - FRAME_BORDER_WIDTH (f) - \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
666 FRAME_REAL_RIGHT_TOOLBAR_WIDTH(f) - \
235
85a06df23a9a Import from CVS: tag r20-5b16
cvs
parents: 217
diff changeset
667 2 * FRAME_REAL_RIGHT_TOOLBAR_BORDER_WIDTH (f))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
668 #define FRAME_RIGHT_BORDER_END(f) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
669 (FRAME_PIXWIDTH (f) - FRAME_REAL_RIGHT_TOOLBAR_WIDTH (f) - \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 185
diff changeset
670 2 * FRAME_REAL_RIGHT_TOOLBAR_BORDER_WIDTH(f))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 /* Equivalent in FSF Emacs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 FOR_EACH_FRAME (LIST_VAR, FRAME_VAR) followed by a statement is a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 `for' loop which iterates over the elements of Vframe_list. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 loop will set FRAME_VAR, a Lisp_Object, to each frame in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 Vframe_list in succession and execute the statement. LIST_VAR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 should be a Lisp_Object too; it is used to iterate through the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 Vframe_list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 /* NO_BREAK means that "break" doesn't do what you think it does!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 Use goto instead. "continue" is OK, though. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 #define FRAME_LOOP_NO_BREAK(frmcons, devcons, concons) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 DEVICE_LOOP_NO_BREAK (devcons, concons) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 DEVICE_FRAME_LOOP (frmcons, XDEVICE (XCAR (devcons)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 void update_frame_title (struct frame *f);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 Lisp_Object next_frame (Lisp_Object f, Lisp_Object frametype,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 Lisp_Object console);
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
691 Lisp_Object prev_frame (Lisp_Object f, Lisp_Object frametype,
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 Lisp_Object console);
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
693 void store_in_alist (Lisp_Object *alistptr,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
694 CONST char *propname,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
695 Lisp_Object val);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 void pixel_to_char_size (struct frame *f, int pixel_width, int pixel_height,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 int *char_width, int *char_height);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 void char_to_pixel_size (struct frame *f, int char_width, int char_height,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 int *pixel_width, int *pixel_height);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 void round_size_to_char (struct frame *f, int in_width, int in_height,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 int *out_width, int *out_height);
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
702 void pixel_to_real_char_size (struct frame *f, int pixel_width, int pixel_height,
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
703 int *char_width, int *char_height);
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
704 void char_to_real_pixel_size (struct frame *f, int char_width, int char_height,
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
705 int *pixel_width, int *pixel_height);
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
706 void round_size_to_real_char (struct frame *f, int in_width, int in_height,
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
707 int *out_width, int *out_height);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 void change_frame_size (struct frame *frame,
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 149
diff changeset
709 int newlength, int newwidth,
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 int delay);
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
711 void adjust_frame_size (struct frame *frame);
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
712 void frame_size_slipped (Lisp_Object specifier, struct frame *f,
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 272
diff changeset
713 Lisp_Object oldval);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 void hold_frame_size_changes (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 void unhold_one_frame_size_changes (struct frame *f);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 void unhold_frame_size_changes (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 void select_frame_1 (Lisp_Object frame);
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
718 void select_frame_2 (Lisp_Object frame);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 struct frame *selected_frame (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 struct frame *device_selected_frame (struct device *d);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 struct frame *decode_frame (Lisp_Object frame);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 struct frame *decode_frame_or_selected (Lisp_Object cdf);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 Lisp_Object make_frame (struct frame *f);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 int other_visible_frames (struct frame *f);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 void delete_frame_internal (struct frame *f, int force,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 int called_from_delete_device,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 int from_io_error);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 void io_error_delete_frame (Lisp_Object frame);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 Lisp_Object find_some_frame (int (*predicate) (Lisp_Object, void *),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 void *closure);
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
731 int device_matches_console_spec (Lisp_Object frame, Lisp_Object device,
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
732 Lisp_Object console);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 Lisp_Object frame_first_window (struct frame *f);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 int show_gc_cursor (struct frame *f, Lisp_Object cursor);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 void set_frame_selected_window (struct frame *f, Lisp_Object window);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 int is_surrogate_for_selected_frame (struct frame *f);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 void update_frame_icon (struct frame *f);
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
738 void invalidate_vertical_divider_cache_in_frame (struct frame *f);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
740 #endif /* _XEMACS_FRAME_H_ */