Mercurial > hg > xemacs-beta
comparison src/frame.h @ 108:360340f9fd5f r20-1b6
Import from CVS: tag r20-1b6
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:18:39 +0200 |
parents | 54cc21c15cbb |
children | cca96a509cfe |
comparison
equal
deleted
inserted
replaced
107:523141596bda | 108:360340f9fd5f |
---|---|
110 | 110 |
111 #define MARKED_SLOT(x) Lisp_Object x | 111 #define MARKED_SLOT(x) Lisp_Object x |
112 #include "frameslots.h" | 112 #include "frameslots.h" |
113 #undef MARKED_SLOT | 113 #undef MARKED_SLOT |
114 | 114 |
115 /* Nonzero if frame is currently displayed. | |
116 Mutally exclusive with iconfied | |
117 JV: This now a tristate flag: | |
118 Value : Emacs meaning :f-v-p : X meaning | |
119 0 : not displayed : nil : unmapped | |
120 >0 : user can access it,needs repainting : t : mapped and visible | |
121 <0 : user can access it,needs no repainting : hidden :mapped and invisible | |
122 where f-v-p is the return value of frame-visible-p */ | |
123 int visible; | |
124 | |
115 /* one-bit flags: */ | 125 /* one-bit flags: */ |
116 | 126 |
117 /* Are we finished initializing? */ | 127 /* Are we finished initializing? */ |
118 unsigned int init_finished :1; | 128 unsigned int init_finished :1; |
119 | 129 |
123 /* Nonzero if this frame has been destroyed. */ | 133 /* Nonzero if this frame has been destroyed. */ |
124 unsigned int dead :1; | 134 unsigned int dead :1; |
125 | 135 |
126 /* Nonzero if last attempt at redisplay on this frame was preempted. */ | 136 /* Nonzero if last attempt at redisplay on this frame was preempted. */ |
127 unsigned int display_preempted :1; | 137 unsigned int display_preempted :1; |
128 | |
129 /* Nonzero if frame is currently displayed. */ | |
130 unsigned int visible :1; | |
131 | 138 |
132 /* Nonzero if window is currently iconified. | 139 /* Nonzero if window is currently iconified. |
133 This and visible are mutually exclusive. */ | 140 This and visible are mutually exclusive. */ |
134 unsigned int iconified :1; | 141 unsigned int iconified :1; |
135 | 142 |
330 #define FRAME_NEW_HEIGHT(f) ((f)->new_height) | 337 #define FRAME_NEW_HEIGHT(f) ((f)->new_height) |
331 #define FRAME_NEW_WIDTH(f) ((f)->new_width) | 338 #define FRAME_NEW_WIDTH(f) ((f)->new_width) |
332 #define FRAME_CURSOR_X(f) ((f)->cursor_x) | 339 #define FRAME_CURSOR_X(f) ((f)->cursor_x) |
333 #define FRAME_CURSOR_Y(f) ((f)->cursor_y) | 340 #define FRAME_CURSOR_Y(f) ((f)->cursor_y) |
334 #define FRAME_VISIBLE_P(f) ((f)->visible) | 341 #define FRAME_VISIBLE_P(f) ((f)->visible) |
342 #define FRAME_REPAINT_P(f) ((f)->visible>0) | |
335 #define FRAME_NO_SPLIT_P(f) ((f)->no_split) | 343 #define FRAME_NO_SPLIT_P(f) ((f)->no_split) |
336 #define FRAME_ICONIFIED_P(f) ((f)->iconified) | 344 #define FRAME_ICONIFIED_P(f) ((f)->iconified) |
337 #define FRAME_FOCUS_FRAME(f) ((f)->focus_frame) | 345 #define FRAME_FOCUS_FRAME(f) ((f)->focus_frame) |
338 #define FRAME_MINIBUF_WINDOW(f) ((f)->minibuffer_window) | 346 #define FRAME_MINIBUF_WINDOW(f) ((f)->minibuffer_window) |
339 #define FRAME_ROOT_WINDOW(f) ((f)->root_window) | 347 #define FRAME_ROOT_WINDOW(f) ((f)->root_window) |