Mercurial > hg > xemacs-beta
annotate src/console-x-impl.h @ 5167:e374ea766cc1
clean up, rearrange allocation statistics code
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-03-21 Ben Wing <ben@xemacs.org>
* alloc.c:
* alloc.c (assert_proper_sizing):
* alloc.c (c_readonly):
* alloc.c (malloced_storage_size):
* alloc.c (fixed_type_block_overhead):
* alloc.c (lisp_object_storage_size):
* alloc.c (inc_lrecord_stats):
* alloc.c (dec_lrecord_stats):
* alloc.c (pluralize_word):
* alloc.c (object_memory_usage_stats):
* alloc.c (Fobject_memory_usage):
* alloc.c (compute_memusage_stats_length):
* alloc.c (disksave_object_finalization_1):
* alloc.c (Fgarbage_collect):
* mc-alloc.c:
* mc-alloc.c (mc_alloced_storage_size):
* mc-alloc.h:
No functionality change here. Collect the allocations-statistics
code that was scattered throughout alloc.c into one place. Add
remaining section headings so that all sections have headings
clearly identifying the start of the section and its purpose.
Expose mc_alloced_storage_size() even when not MEMORY_USAGE_STATS;
this fixes build problems and is related to the export of
lisp_object_storage_size() and malloced_storage_size() when
non-MEMORY_USAGE_STATS in the previous change set.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Sun, 21 Mar 2010 04:41:49 -0500 |
parents | 7be849cb8828 |
children | 97eb4942aec8 |
rev | line source |
---|---|
872 | 1 /* Define X specific console, device, and frame object for XEmacs. |
2 Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. | |
3 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois. | |
1346 | 4 Copyright (C) 1996, 2002, 2003 Ben Wing. |
5080
5502045ec510
The background-placement face property.
Didier Verna <didier@lrde.epita.fr>
parents:
4916
diff
changeset
|
5 Copyright (C) 2010 Didier Verna |
872 | 6 |
7 This file is part of XEmacs. | |
8 | |
9 XEmacs is free software; you can redistribute it and/or modify it | |
10 under the terms of the GNU General Public License as published by the | |
11 Free Software Foundation; either version 2, or (at your option) any | |
12 later version. | |
13 | |
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
17 for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with XEmacs; see the file COPYING. If not, write to | |
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
22 Boston, MA 02111-1307, USA. */ | |
23 | |
24 /* Synched up with: Not in FSF. */ | |
25 | |
26 | |
27 /* Authorship: | |
28 | |
29 Ultimately based on FSF, then later on JWZ work for Lemacs. | |
30 Rewritten over time by Ben Wing and Chuck Thompson (original | |
31 multi-device work by Chuck Thompson). | |
32 */ | |
33 | |
34 #ifndef INCLUDED_console_x_impl_h_ | |
35 #define INCLUDED_console_x_impl_h_ | |
36 | |
37 #ifdef HAVE_X_WINDOWS | |
38 | |
39 #include "console-impl.h" | |
40 #include "console-x.h" | |
41 | |
42 DECLARE_CONSOLE_TYPE (x); | |
43 | |
3381 | 44 extern int wedge_metacity; |
45 | |
872 | 46 struct x_device |
47 { | |
3092 | 48 #ifdef NEW_GC |
5127
a9c41067dd88
more cleanups, terminology clarification, lots of doc work
Ben Wing <ben@xemacs.org>
parents:
5125
diff
changeset
|
49 NORMAL_LISP_OBJECT_HEADER header; |
3092 | 50 #endif /* NEW_GC */ |
872 | 51 /* The X connection of this device. */ |
52 Display *display; | |
53 | |
54 /* Set by x_IO_error_handler(). */ | |
55 int being_deleted; | |
56 | |
57 /* Xt application info. */ | |
58 Widget Xt_app_shell; | |
59 | |
60 /* Cache of GC's for frames on this device. */ | |
61 struct gc_cache *gc_cache; | |
62 | |
63 /* Selected visual, depth and colormap for this device */ | |
64 Visual *visual; | |
65 int depth; | |
66 Colormap device_cmap; | |
67 | |
68 /* Used by x_bevel_modeline in redisplay-x.c */ | |
69 Pixmap gray_pixmap; | |
70 | |
71 /* Atoms associated with this device. */ | |
72 /* allocated in Xatoms_of_device_x */ | |
73 Atom Xatom_WM_PROTOCOLS; | |
74 Atom Xatom_WM_DELETE_WINDOW; | |
75 Atom Xatom_WM_SAVE_YOURSELF; | |
76 Atom Xatom_WM_TAKE_FOCUS; | |
77 Atom Xatom_WM_STATE; | |
78 | |
79 /* allocated in Xatoms_of_select_x */ | |
80 Atom Xatom_CLIPBOARD; | |
81 Atom Xatom_TIMESTAMP; | |
82 Atom Xatom_TEXT; | |
83 Atom Xatom_DELETE; | |
84 Atom Xatom_MULTIPLE; | |
85 Atom Xatom_INCR; | |
86 Atom Xatom_EMACS_TMP; | |
87 Atom Xatom_TARGETS; | |
88 Atom Xatom_NULL; | |
89 Atom Xatom_ATOM_PAIR; | |
90 Atom Xatom_COMPOUND_TEXT; | |
91 | |
92 /* allocated in Xatoms_of_objects_x */ | |
93 Atom Xatom_FOUNDRY; | |
94 Atom Xatom_FAMILY_NAME; | |
95 Atom Xatom_WEIGHT_NAME; | |
96 Atom Xatom_SLANT; | |
97 Atom Xatom_SETWIDTH_NAME; | |
98 Atom Xatom_ADD_STYLE_NAME; | |
99 Atom Xatom_PIXEL_SIZE; | |
100 Atom Xatom_POINT_SIZE; | |
101 Atom Xatom_RESOLUTION_X; | |
102 Atom Xatom_RESOLUTION_Y; | |
103 Atom Xatom_SPACING; | |
104 Atom Xatom_AVERAGE_WIDTH; | |
105 Atom Xatom_CHARSET_REGISTRY; | |
106 Atom Xatom_CHARSET_ENCODING; | |
107 | |
108 /* The following items are all used exclusively in event-Xt.c. */ | |
109 int MetaMask, HyperMask, SuperMask, AltMask, ModeMask; | |
110 KeySym lock_interpretation; | |
111 | |
112 XModifierKeymap *x_modifier_keymap; | |
113 | |
114 KeySym *x_keysym_map; | |
115 int x_keysym_map_min_code; | |
116 int x_keysym_map_max_code; | |
117 int x_keysym_map_keysyms_per_code; | |
118 Lisp_Object x_keysym_map_hash_table; | |
119 | |
120 /* frame that holds the WM_COMMAND property; there should be exactly | |
121 one of these per device. */ | |
122 Lisp_Object WM_COMMAND_frame; | |
123 | |
124 /* #### It's not clear that there is much distinction anymore | |
125 between mouse_timestamp and global_mouse_timestamp, now that | |
126 Emacs doesn't see most (all?) events not destined for it. */ | |
127 | |
128 /* The timestamp of the last button or key event used by emacs itself. | |
129 This is used for asserting selections and input focus. */ | |
130 Time mouse_timestamp; | |
131 | |
132 /* This is the timestamp the last button or key event whether it was | |
133 dispatched to emacs or widgets. */ | |
134 Time global_mouse_timestamp; | |
135 | |
136 /* This is the last known timestamp received from the server. It is | |
137 maintained by x_event_to_emacs_event and used to patch bogus | |
138 WM_TAKE_FOCUS messages sent by Mwm. */ | |
139 Time last_server_timestamp; | |
140 | |
141 /* Used by Xlib to preserve information across calls to | |
142 XLookupString(), to implement compose processing. | |
143 | |
144 According to The X Window System, p. 467, "The creation of | |
145 XComposeStatus structures is implementation dependent; | |
146 a portable program must pass NULL for this argument." | |
147 But this means that a portable program cannot implement | |
148 compose processing! WTF? | |
149 | |
150 So we just set it to all zeros. */ | |
151 | |
152 /* No X Server ever used this, AFAIK -- mrb */ | |
153 /* XComposeStatus x_compose_status; */ | |
154 | |
155 #ifdef HAVE_XIM | |
156 XIM xim; | |
157 XIMStyles *xim_styles; | |
158 #endif /* HAVE_XIM */ | |
159 | |
160 /* stuff for sticky modifiers: */ | |
161 | |
162 unsigned int need_to_add_mask, down_mask; | |
163 KeyCode last_downkey; | |
164 Time release_time; | |
165 Time modifier_release_time; | |
166 }; | |
167 | |
3092 | 168 #ifdef NEW_GC |
169 typedef struct x_device Lisp_X_Device; | |
170 | |
5118
e0db3c197671
merge up to latest default branch, doesn't compile yet
Ben Wing <ben@xemacs.org>
parents:
4584
diff
changeset
|
171 DECLARE_LISP_OBJECT (x_device, Lisp_X_Device); |
3092 | 172 |
173 #define XX_DEVICE(x) \ | |
174 XRECORD (x, x_device, Lisp_X_Device) | |
175 #define wrap_x_device(p) wrap_record (p, x_device) | |
176 #define X_DEVICE_P(x) RECORDP (x, x_device) | |
177 #endif /* NEW_GC */ | |
178 | |
872 | 179 #define DEVICE_X_DATA(d) DEVICE_TYPE_DATA (d, x) |
180 | |
181 #define FRAME_X_DISPLAY(f) (DEVICE_X_DISPLAY (XDEVICE (f->device))) | |
182 #define DEVICE_X_DISPLAY(d) (DEVICE_X_DATA (d)->display) | |
183 #define DEVICE_X_BEING_DELETED(d) (DEVICE_X_DATA (d)->being_deleted) | |
184 #define DEVICE_X_VISUAL(d) (DEVICE_X_DATA (d)->visual) | |
185 #define DEVICE_X_DEPTH(d) (DEVICE_X_DATA (d)->depth) | |
186 #define DEVICE_X_COLORMAP(d) (DEVICE_X_DATA (d)->device_cmap) | |
187 #define DEVICE_XT_APP_SHELL(d) (DEVICE_X_DATA (d)->Xt_app_shell) | |
188 #define DEVICE_X_GC_CACHE(d) (DEVICE_X_DATA (d)->gc_cache) | |
189 #define DEVICE_X_GRAY_PIXMAP(d) (DEVICE_X_DATA (d)->gray_pixmap) | |
190 #define DEVICE_X_WM_COMMAND_FRAME(d) (DEVICE_X_DATA (d)->WM_COMMAND_frame) | |
191 #define DEVICE_X_MOUSE_TIMESTAMP(d) (DEVICE_X_DATA (d)->mouse_timestamp) | |
192 #define DEVICE_X_GLOBAL_MOUSE_TIMESTAMP(d) (DEVICE_X_DATA (d)->global_mouse_timestamp) | |
193 #define DEVICE_X_LAST_SERVER_TIMESTAMP(d) (DEVICE_X_DATA (d)->last_server_timestamp) | |
194 #define DEVICE_X_KEYSYM_MAP_HASH_TABLE(d) (DEVICE_X_DATA (d)->x_keysym_map_hash_table) | |
195 /* #define DEVICE_X_X_COMPOSE_STATUS(d) (DEVICE_X_DATA (d)->x_compose_status) */ | |
196 #ifdef HAVE_XIM | |
197 #define DEVICE_X_XIM(d) (DEVICE_X_DATA (d)->xim) | |
198 #define DEVICE_X_XIM_STYLES(d) (DEVICE_X_DATA (d)->xim_styles) | |
199 #define DEVICE_X_FONTSET(d) (DEVICE_X_DATA (d)->fontset) | |
200 #endif /* HAVE_XIM */ | |
201 | |
202 /* allocated in Xatoms_of_device_x */ | |
203 #define DEVICE_XATOM_WM_PROTOCOLS(d) (DEVICE_X_DATA (d)->Xatom_WM_PROTOCOLS) | |
204 #define DEVICE_XATOM_WM_DELETE_WINDOW(d) (DEVICE_X_DATA (d)->Xatom_WM_DELETE_WINDOW) | |
205 #define DEVICE_XATOM_WM_SAVE_YOURSELF(d) (DEVICE_X_DATA (d)->Xatom_WM_SAVE_YOURSELF) | |
206 #define DEVICE_XATOM_WM_TAKE_FOCUS(d) (DEVICE_X_DATA (d)->Xatom_WM_TAKE_FOCUS) | |
207 #define DEVICE_XATOM_WM_STATE(d) (DEVICE_X_DATA (d)->Xatom_WM_STATE) | |
208 | |
209 /* allocated in Xatoms_of_select_x */ | |
210 #define DEVICE_XATOM_CLIPBOARD(d) (DEVICE_X_DATA (d)->Xatom_CLIPBOARD) | |
211 #define DEVICE_XATOM_TIMESTAMP(d) (DEVICE_X_DATA (d)->Xatom_TIMESTAMP) | |
212 #define DEVICE_XATOM_TEXT(d) (DEVICE_X_DATA (d)->Xatom_TEXT) | |
213 #define DEVICE_XATOM_DELETE(d) (DEVICE_X_DATA (d)->Xatom_DELETE) | |
214 #define DEVICE_XATOM_MULTIPLE(d) (DEVICE_X_DATA (d)->Xatom_MULTIPLE) | |
215 #define DEVICE_XATOM_INCR(d) (DEVICE_X_DATA (d)->Xatom_INCR) | |
216 #define DEVICE_XATOM_EMACS_TMP(d) (DEVICE_X_DATA (d)->Xatom_EMACS_TMP) | |
217 #define DEVICE_XATOM_TARGETS(d) (DEVICE_X_DATA (d)->Xatom_TARGETS) | |
218 #define DEVICE_XATOM_NULL(d) (DEVICE_X_DATA (d)->Xatom_NULL) | |
219 #define DEVICE_XATOM_ATOM_PAIR(d) (DEVICE_X_DATA (d)->Xatom_ATOM_PAIR) | |
220 #define DEVICE_XATOM_COMPOUND_TEXT(d) (DEVICE_X_DATA (d)->Xatom_COMPOUND_TEXT) | |
221 | |
222 /* allocated in Xatoms_of_objects_x */ | |
223 #define DEVICE_XATOM_FOUNDRY(d) (DEVICE_X_DATA (d)->Xatom_FOUNDRY) | |
224 #define DEVICE_XATOM_FAMILY_NAME(d) (DEVICE_X_DATA (d)->Xatom_FAMILY_NAME) | |
225 #define DEVICE_XATOM_WEIGHT_NAME(d) (DEVICE_X_DATA (d)->Xatom_WEIGHT_NAME) | |
226 #define DEVICE_XATOM_SLANT(d) (DEVICE_X_DATA (d)->Xatom_SLANT) | |
227 #define DEVICE_XATOM_SETWIDTH_NAME(d) (DEVICE_X_DATA (d)->Xatom_SETWIDTH_NAME) | |
228 #define DEVICE_XATOM_ADD_STYLE_NAME(d) (DEVICE_X_DATA (d)->Xatom_ADD_STYLE_NAME) | |
229 #define DEVICE_XATOM_PIXEL_SIZE(d) (DEVICE_X_DATA (d)->Xatom_PIXEL_SIZE) | |
230 #define DEVICE_XATOM_POINT_SIZE(d) (DEVICE_X_DATA (d)->Xatom_POINT_SIZE) | |
231 #define DEVICE_XATOM_RESOLUTION_X(d) (DEVICE_X_DATA (d)->Xatom_RESOLUTION_X) | |
232 #define DEVICE_XATOM_RESOLUTION_Y(d) (DEVICE_X_DATA (d)->Xatom_RESOLUTION_Y) | |
233 #define DEVICE_XATOM_SPACING(d) (DEVICE_X_DATA (d)->Xatom_SPACING) | |
234 #define DEVICE_XATOM_AVERAGE_WIDTH(d) (DEVICE_X_DATA (d)->Xatom_AVERAGE_WIDTH) | |
235 #define DEVICE_XATOM_CHARSET_REGISTRY(d) (DEVICE_X_DATA (d)->Xatom_CHARSET_REGISTRY) | |
236 #define DEVICE_XATOM_CHARSET_ENCODING(d) (DEVICE_X_DATA (d)->Xatom_CHARSET_ENCODING) | |
237 | |
238 /* The maximum number of widgets that can be displayed above the text | |
239 area at one time. Currently no more than 3 will ever actually be | |
3381 | 240 displayed (menubar, psheet, debugger panel). |
241 #### Are "psheet" and "debugger panel" relevant any more? */ | |
872 | 242 #define MAX_CONCURRENT_TOP_WIDGETS 8 |
243 | |
244 struct x_frame | |
245 { | |
3092 | 246 #ifdef NEW_GC |
5127
a9c41067dd88
more cleanups, terminology clarification, lots of doc work
Ben Wing <ben@xemacs.org>
parents:
5125
diff
changeset
|
247 NORMAL_LISP_OBJECT_HEADER header; |
3092 | 248 #endif /* NEW_GC */ |
249 | |
3381 | 250 /* The widget of this frame. |
251 This is an EmacsShell or an ExternalShell. | |
252 It negotiates with the window manager or containing app on behalf of | |
253 the container widget. Should be (but isn't) invisible to Emacs. */ | |
872 | 254 Widget widget; |
255 | |
256 /* The parent of the EmacsFrame, the menubar, and the scrollbars. | |
3381 | 257 This is an EmacsManager. |
258 It is responsible for managing the geometry of the frame. This is what | |
259 Emacs mostly talks to. Anything that affects its geometry will be | |
260 reflected in the Shell widget, and thus cause WM interaction. */ | |
872 | 261 Widget container; |
262 | |
263 /* The widget of the menubar, of whatever widget class it happens to be. */ | |
264 Widget menubar_widget; | |
265 | |
266 /* The widget of the edit portion of this frame; this is an EmacsFrame, | |
267 and the window of this widget is what the redisplay code draws on. */ | |
268 Widget edit_widget; | |
5080
5502045ec510
The background-placement face property.
Didier Verna <didier@lrde.epita.fr>
parents:
4916
diff
changeset
|
269 /* Position of the edit widget above, for absolute background placement. */ |
5502045ec510
The background-placement face property.
Didier Verna <didier@lrde.epita.fr>
parents:
4916
diff
changeset
|
270 int x, y; |
872 | 271 |
272 /* Lists the widgets above the text area, in the proper order. | |
273 Used by the EmacsManager. */ | |
274 Widget top_widgets[MAX_CONCURRENT_TOP_WIDGETS]; | |
275 int num_top_widgets; | |
276 | |
1346 | 277 /* lwlib ID of the tree of widgets corresponding to this popup. We pass |
278 this to lw_map_widget_values() to retrieve all of our Lispy call-data | |
279 and accel values that need to be GCPRO'd, and store them in the | |
280 following list. (We used to call lw_map_widget_values() during GC | |
281 mark, but that isn't compatible with KKCC.) */ | |
282 LWLIB_ID menubar_id; | |
283 | |
284 /* For the frame popup data, this is the last buffer for which the | |
285 menubar was displayed. If the buffer has changed, we may have to | |
286 update things. */ | |
287 Lisp_Object last_menubar_buffer; | |
288 | |
289 /* This flag tells us if the menubar contents are up-to-date with respect | |
290 to the current menubar structure. If we want to actually pull down a | |
291 menu and this is false, then we need to update things. */ | |
2367 | 292 Boolbyte menubar_contents_up_to_date; |
872 | 293 |
294 /* The icon pixmaps; these are Lisp_Image_Instance objects, or Qnil. */ | |
295 Lisp_Object icon_pixmap; | |
296 Lisp_Object icon_pixmap_mask; | |
297 | |
298 #ifdef HAVE_TOOLBARS | |
299 int old_toolbar_size[4]; | |
300 | |
301 /* We don't provide a mechanism for changing these after they are | |
302 initialized so we might as well keep pointers to them and avoid | |
303 lots of expensive calls to gc_cache_lookup. */ | |
304 GC toolbar_top_shadow_gc; | |
305 GC toolbar_bottom_shadow_gc; | |
306 GC toolbar_blank_background_gc; | |
307 GC toolbar_pixmap_background_gc; | |
308 #endif /* HAVE_TOOLBARS */ | |
309 | |
310 /* geometry string that ought to be freed. */ | |
2367 | 311 Ascbyte *geom_free_me_please; |
872 | 312 |
313 #ifdef HAVE_XIM | |
314 XPoint xic_spot; /* Spot Location cache */ | |
315 #ifdef XIM_XLIB | |
316 XIC xic; | |
317 /* Could get these at any time by asking xic, but... */ | |
318 XIMStyle xic_style; /* XIM Style cache */ | |
319 #endif /* XIM_XLIB */ | |
320 #endif /* HAVE_XIM */ | |
321 | |
4916
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4584
diff
changeset
|
322 #ifdef HAVE_XFT |
3094 | 323 /* The Xft Drawable wrapper for this device. |
324 #### Should this be per-device, or per-frame? */ | |
325 /* This is persistent to take advantage of the ability of Xft's glyph | |
326 cache in the server, and avoid rendering the font again and again... | |
327 | |
328 This is created the first time through redisplay, and destroyed when our | |
329 connection to the X display is destroyed. */ | |
330 XftDraw *xftDraw; | |
331 #endif | |
332 | |
872 | 333 /* 1 if the frame is completely visible on the display, 0 otherwise. |
334 if 0 the frame may have been iconified or may be totally | |
335 or partially hidden by another X window */ | |
336 unsigned int totally_visible_p :1; | |
337 | |
4584
56e67d42eb04
Clarify comment in struct x_frame.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
3381
diff
changeset
|
338 /* NB: Both of the following flags are derivable from the 'widget' |
872 | 339 field above, but it's easier if we also have them separately here. */ |
340 | |
341 /* Are we a top-level frame? This means that our shell is a | |
342 TopLevelShell, and we should do certain things to interact with | |
343 the window manager. */ | |
344 unsigned int top_level_frame_p :1; | |
345 | |
346 #ifdef EXTERNAL_WIDGET | |
347 /* Are we using somebody else's window for our shell window? This | |
348 means that our shell is an ExternalShell. If this flag is set, then | |
349 `top_level_frame_p' will never be set. */ | |
350 unsigned int external_window_p :1; | |
351 #endif /* EXTERNAL_WIDGET */ | |
352 }; | |
353 | |
3092 | 354 #ifdef NEW_GC |
355 typedef struct x_frame Lisp_X_Frame; | |
356 | |
5118
e0db3c197671
merge up to latest default branch, doesn't compile yet
Ben Wing <ben@xemacs.org>
parents:
4584
diff
changeset
|
357 DECLARE_LISP_OBJECT (x_frame, Lisp_X_Frame); |
3092 | 358 |
359 #define XX_FRAME(x) \ | |
360 XRECORD (x, x_frame, Lisp_X_Frame) | |
361 #define wrap_x_frame(p) wrap_record (p, x_frame) | |
362 #define X_FRAME_P(x) RECORDP (x, x_frame) | |
363 #endif /* NEW_GC */ | |
872 | 364 #define FRAME_X_DATA(f) FRAME_TYPE_DATA (f, x) |
365 | |
5080
5502045ec510
The background-placement face property.
Didier Verna <didier@lrde.epita.fr>
parents:
4916
diff
changeset
|
366 #define FRAME_X_X(f) (FRAME_X_DATA (f)->x) |
5502045ec510
The background-placement face property.
Didier Verna <didier@lrde.epita.fr>
parents:
4916
diff
changeset
|
367 #define FRAME_X_Y(f) (FRAME_X_DATA (f)->y) |
872 | 368 #define FRAME_X_SHELL_WIDGET(f) (FRAME_X_DATA (f)->widget) |
369 #define FRAME_X_CONTAINER_WIDGET(f) (FRAME_X_DATA (f)->container) | |
370 #define FRAME_X_MENUBAR_WIDGET(f) (FRAME_X_DATA (f)->menubar_widget) | |
371 #define FRAME_X_TEXT_WIDGET(f) (FRAME_X_DATA (f)->edit_widget) | |
372 #define FRAME_X_TOP_WIDGETS(f) (FRAME_X_DATA (f)->top_widgets) | |
373 #define FRAME_X_NUM_TOP_WIDGETS(f) (FRAME_X_DATA (f)->num_top_widgets) | |
374 | |
1346 | 375 #define FRAME_X_MENUBAR_ID(f) (FRAME_X_DATA (f)->menubar_id) |
376 #define FRAME_X_LAST_MENUBAR_BUFFER(f) (FRAME_X_DATA (f)->last_menubar_buffer) | |
377 #define FRAME_X_MENUBAR_CONTENTS_UP_TO_DATE(f) \ | |
378 (FRAME_X_DATA (f)->menubar_contents_up_to_date) | |
379 | |
872 | 380 #define FRAME_X_ICON_PIXMAP(f) (FRAME_X_DATA (f)->icon_pixmap) |
381 #define FRAME_X_ICON_PIXMAP_MASK(f) (FRAME_X_DATA (f)->icon_pixmap_mask) | |
382 | |
383 #ifdef HAVE_TOOLBARS | |
384 #define FRAME_X_OLD_TOOLBAR_SIZE(f, pos) (FRAME_X_DATA (f)->old_toolbar_size[pos]) | |
385 | |
386 #define FRAME_X_TOOLBAR_TOP_SHADOW_GC(f) (FRAME_X_DATA (f)->toolbar_top_shadow_gc) | |
387 #define FRAME_X_TOOLBAR_BOTTOM_SHADOW_GC(f) (FRAME_X_DATA (f)->toolbar_bottom_shadow_gc) | |
388 #define FRAME_X_TOOLBAR_BLANK_BACKGROUND_GC(f) (FRAME_X_DATA (f)->toolbar_blank_background_gc) | |
389 #define FRAME_X_TOOLBAR_PIXMAP_BACKGROUND_GC(f) (FRAME_X_DATA (f)->toolbar_pixmap_background_gc) | |
390 #endif /* HAVE_TOOLBARS */ | |
391 | |
392 #define FRAME_X_GEOM_FREE_ME_PLEASE(f) (FRAME_X_DATA (f)->geom_free_me_please) | |
393 | |
4916
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4584
diff
changeset
|
394 #ifdef HAVE_XFT |
3094 | 395 #define FRAME_X_XFTDRAW(f) (FRAME_X_DATA (f)->xftDraw) |
396 #endif | |
397 | |
872 | 398 #define FRAME_X_TOTALLY_VISIBLE_P(f) (FRAME_X_DATA (f)->totally_visible_p) |
399 #define FRAME_X_TOP_LEVEL_FRAME_P(f) (FRAME_X_DATA (f)->top_level_frame_p) | |
400 | |
401 #ifdef EXTERNAL_WIDGET | |
402 #define FRAME_X_EXTERNAL_WINDOW_P(f) (FRAME_X_DATA (f)->external_window_p) | |
403 #endif | |
404 | |
405 #ifdef HAVE_XIM | |
406 #define FRAME_X_XIC_SPOT(f) (FRAME_X_DATA (f)->xic_spot) | |
407 #ifdef XIM_XLIB | |
408 #define FRAME_X_XIC(f) (FRAME_X_DATA (f)->xic) | |
409 #define FRAME_X_XIC_STYLE(f) (FRAME_X_DATA (f)->xic_style) | |
410 #endif /* XIM_XLIB */ | |
411 #endif /* HAVE_XIM */ | |
412 | |
413 extern struct console_type *x_console_type; | |
414 | |
5080
5502045ec510
The background-placement face property.
Didier Verna <didier@lrde.epita.fr>
parents:
4916
diff
changeset
|
415 void x_get_frame_text_position (struct frame *); |
5502045ec510
The background-placement face property.
Didier Verna <didier@lrde.epita.fr>
parents:
4916
diff
changeset
|
416 |
872 | 417 #endif /* HAVE_X_WINDOWS */ |
418 | |
419 #endif /* INCLUDED_console_x_impl_h_ */ |