comparison src/window.h @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 95016f13131a
children
comparison
equal deleted inserted replaced
423:28d9c139be4c 424:11054d720c21
128 Lisp_Object sb_point; 128 Lisp_Object sb_point;
129 /* Number of columns display within the window is scrolled to the left. */ 129 /* Number of columns display within the window is scrolled to the left. */
130 int hscroll; 130 int hscroll;
131 /* Idem for the window's modeline */ 131 /* Idem for the window's modeline */
132 int modeline_hscroll; 132 int modeline_hscroll;
133 /* Amount to clip off the top line for pixel-based scrolling. Point
134 will remain constant but this will be incremented to
135 incrementally shift lines up. */
136 int top_yoffset;
137 /* Amount to clip off the left of the lines for pixel-based
138 scrolling. Hscroll will remain constant but this will be
139 incremented to incrementally shift lines left.*/
140 int left_xoffset;
133 /* Number saying how recently window was selected */ 141 /* Number saying how recently window was selected */
134 Lisp_Object use_time; 142 Lisp_Object use_time;
135 /* text.modified of displayed buffer as of last time display completed */ 143 /* text.modified of displayed buffer as of last time display completed */
136 Lisp_Object last_modified[3]; 144 Lisp_Object last_modified[3];
137 /* Value of point at that time */ 145 /* Value of point at that time */
252 260
253 DECLARE_LRECORD (window, struct window); 261 DECLARE_LRECORD (window, struct window);
254 #define XWINDOW(x) XRECORD (x, window, struct window) 262 #define XWINDOW(x) XRECORD (x, window, struct window)
255 #define XSETWINDOW(x, p) XSETRECORD (x, p, window) 263 #define XSETWINDOW(x, p) XSETRECORD (x, p, window)
256 #define WINDOWP(x) RECORDP (x, window) 264 #define WINDOWP(x) RECORDP (x, window)
257 #define GC_WINDOWP(x) GC_RECORDP (x, window)
258 #define CHECK_WINDOW(x) CHECK_RECORD (x, window) 265 #define CHECK_WINDOW(x) CHECK_RECORD (x, window)
259 #define CONCHECK_WINDOW(x) CONCHECK_RECORD (x, window) 266 #define CONCHECK_WINDOW(x) CONCHECK_RECORD (x, window)
260 267
261 #define WINDOW_LIVE_P(x) (!(x)->dead) 268 #define WINDOW_LIVE_P(x) (!(x)->dead)
262 #define CHECK_LIVE_WINDOW(x) do { \ 269 #define CHECK_LIVE_WINDOW(x) do { \
380 #define WINDOW_CONSOLE(w) DEVICE_CONSOLE (XDEVICE (WINDOW_DEVICE (w))) 387 #define WINDOW_CONSOLE(w) DEVICE_CONSOLE (XDEVICE (WINDOW_DEVICE (w)))
381 388
382 /* XEmacs window size and positioning macros. */ 389 /* XEmacs window size and positioning macros. */
383 #define WINDOW_TOP(w) ((w)->pixel_top) 390 #define WINDOW_TOP(w) ((w)->pixel_top)
384 #define WINDOW_TEXT_TOP(w) (WINDOW_TOP (w) + window_top_gutter_height (w)) 391 #define WINDOW_TEXT_TOP(w) (WINDOW_TOP (w) + window_top_gutter_height (w))
392 #define WINDOW_TEXT_TOP_CLIP(w) ((w)->top_yoffset)
385 #define WINDOW_BOTTOM(w) ((w)->pixel_top + (w)->pixel_height) 393 #define WINDOW_BOTTOM(w) ((w)->pixel_top + (w)->pixel_height)
386 #define WINDOW_TEXT_BOTTOM(w) (WINDOW_BOTTOM (w) - window_bottom_gutter_height (w)) 394 #define WINDOW_TEXT_BOTTOM(w) (WINDOW_BOTTOM (w) - window_bottom_gutter_height (w))
387 #define WINDOW_LEFT(w) ((w)->pixel_left) 395 #define WINDOW_LEFT(w) ((w)->pixel_left)
388 #define WINDOW_TEXT_LEFT(w) (WINDOW_LEFT (w) + window_left_gutter_width (w, 0)) 396 #define WINDOW_TEXT_LEFT(w) (WINDOW_LEFT (w) + window_left_gutter_width (w, 0))
389 #define WINDOW_MODELINE_LEFT(w) \ 397 #define WINDOW_MODELINE_LEFT(w) \