Mercurial > hg > xemacs-beta
comparison src/device.h @ 380:8626e4521993 r21-2-5
Import from CVS: tag r21-2-5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:07:10 +0200 |
parents | c5d627a313b1 |
children | bbff43aa5eb7 |
comparison
equal
deleted
inserted
replaced
379:76b7d63099ad | 380:8626e4521993 |
---|---|
98 to point to the selected_frame if XEmacs currently has the focus | 98 to point to the selected_frame if XEmacs currently has the focus |
99 on this device. Note that frame_with_focus may be nil (none of the | 99 on this device. Note that frame_with_focus may be nil (none of the |
100 frames on this device have the window-system focus), but | 100 frames on this device have the window-system focus), but |
101 selected_frame will never be nil if there are any frames on | 101 selected_frame will never be nil if there are any frames on |
102 the device. */ | 102 the device. */ |
103 Lisp_Object _selected_frame; | 103 Lisp_Object selected_frame; |
104 /* Frame that currently contains the window-manager focus, or none. | 104 /* Frame that currently contains the window-manager focus, or none. |
105 Note that we've split frame_with_focus into two variables. | 105 Note that we've split frame_with_focus into two variables. |
106 frame_with_focus_real is the value we use most of the time, | 106 frame_with_focus_real is the value we use most of the time, |
107 but frame_with_focus_for_hooks is used for running the select-frame-hook | 107 but frame_with_focus_for_hooks is used for running the select-frame-hook |
108 and deselect-frame-hook. We do this because we split the focus handling | 108 and deselect-frame-hook. We do this because we split the focus handling |
306 #define DEVICE_REDISPLAY_INFO(d) ((d)->redisplay_info) | 306 #define DEVICE_REDISPLAY_INFO(d) ((d)->redisplay_info) |
307 | 307 |
308 #define DEVICE_NAME(d) ((d)->name) | 308 #define DEVICE_NAME(d) ((d)->name) |
309 #define DEVICE_CLASS(d) ((d)->device_class) | 309 #define DEVICE_CLASS(d) ((d)->device_class) |
310 /* Catch people attempting to set this. */ | 310 /* Catch people attempting to set this. */ |
311 #define DEVICE_SELECTED_FRAME(d) NON_LVALUE ((d)->_selected_frame) | 311 #define DEVICE_SELECTED_FRAME(d) NON_LVALUE ((d)->selected_frame) |
312 #define DEVICE_FRAME_WITH_FOCUS_REAL(d) ((d)->frame_with_focus_real) | 312 #define DEVICE_FRAME_WITH_FOCUS_REAL(d) ((d)->frame_with_focus_real) |
313 #define DEVICE_FRAME_WITH_FOCUS_FOR_HOOKS(d) ((d)->frame_with_focus_for_hooks) | 313 #define DEVICE_FRAME_WITH_FOCUS_FOR_HOOKS(d) ((d)->frame_with_focus_for_hooks) |
314 #define DEVICE_FRAME_THAT_OUGHT_TO_HAVE_FOCUS(d) \ | 314 #define DEVICE_FRAME_THAT_OUGHT_TO_HAVE_FOCUS(d) \ |
315 ((d)->frame_that_ought_to_have_focus) | 315 ((d)->frame_that_ought_to_have_focus) |
316 #define DEVICE_USER_DEFINED_TAGS(d) ((d)->user_defined_tags) | 316 #define DEVICE_USER_DEFINED_TAGS(d) ((d)->user_defined_tags) |
329 #define UNLOCK_DEVICE(d) ((void) ((d)->locked = 0)) | 329 #define UNLOCK_DEVICE(d) ((void) ((d)->locked = 0)) |
330 | 330 |
331 #define INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE(d) \ | 331 #define INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE(d) \ |
332 ((void) ((d)->pixel_to_glyph_cache.valid = 0)) | 332 ((void) ((d)->pixel_to_glyph_cache.valid = 0)) |
333 | 333 |
334 #define INVALIDATE_PIXEL_TO_GLYPH_CACHE do { \ | 334 #define INVALIDATE_PIXEL_TO_GLYPH_CACHE do { \ |
335 Lisp_Object _devcons_, _concons_; \ | 335 Lisp_Object IPTGC_devcons, IPTGC_concons; \ |
336 DEVICE_LOOP_NO_BREAK (_devcons_, _concons_) \ | 336 DEVICE_LOOP_NO_BREAK (IPTGC_devcons, IPTGC_concons) \ |
337 INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE (XDEVICE (XCAR (_devcons_)));\ | 337 INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE (XDEVICE (XCAR (IPTGC_devcons))); \ |
338 } while (0) | 338 } while (0) |
339 | 339 |
340 #define MARK_DEVICE_FACES_CHANGED(d) \ | 340 #define MARK_DEVICE_FACES_CHANGED(d) \ |
341 ((void) (faces_changed = (d)->faces_changed = 1)) | 341 ((void) (faces_changed = (d)->faces_changed = 1)) |
342 | 342 |
343 #define MARK_DEVICE_GLYPHS_CHANGED(d) \ | 343 #define MARK_DEVICE_GLYPHS_CHANGED(d) \ |