Mercurial > emacs
comparison src/window.h @ 16264:012a1d850ee8
(WINDOW_LEFT_MARGIN): New macro.
(WINDOW_RIGHT_EDGE, WINDOW_RIGHT_MARGIN): New macros.
(WINDOW_FULL_WIDTH_P, WINDOW_RIGHTMOST_P): New macros.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 21 Sep 1996 03:31:53 +0000 |
parents | b67b2e8eacb3 |
children | 39aa8dd49637 |
comparison
equal
deleted
inserted
replaced
16263:a369af16e836 | 16264:012a1d850ee8 |
---|---|
186 | 186 |
187 /* 1 if W is a minibuffer window. */ | 187 /* 1 if W is a minibuffer window. */ |
188 | 188 |
189 #define MINI_WINDOW_P(W) (!EQ ((W)->mini_p, Qnil)) | 189 #define MINI_WINDOW_P(W) (!EQ ((W)->mini_p, Qnil)) |
190 | 190 |
191 /* Return the frame column at which the text in window W starts. | |
192 This is different from the `left' field because it does not include | |
193 a left-hand scroll bar if any. */ | |
194 | |
195 #define WINDOW_LEFT_MARGIN(W) \ | |
196 (XFASTINT ((W)->left) \ | |
197 + FRAME_LEFT_SCROLL_BAR_WIDTH (XFRAME (WINDOW_FRAME (W)))) | |
198 | |
199 /* Return the frame column before window W ends. | |
200 This includes a right-hand scroll bar, if any. */ | |
201 | |
202 #define WINDOW_RIGHT_EDGE(W) \ | |
203 (XFASTINT ((W)->left) + XFASTINT ((W)->width)) | |
204 | |
205 /* Return the frame column before which the text in window W ends. | |
206 This is different from WINDOW_RIGHT_EDGE because it does not include | |
207 a right-hand scroll bar if any. */ | |
208 | |
209 #define WINDOW_RIGHT_MARGIN(W) \ | |
210 (WINDOW_RIGHT_EDGE (W) \ | |
211 - (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (XFRAME (WINDOW_FRAME (W))) \ | |
212 ? FRAME_SCROLL_BAR_COLS (XFRAME (WINDOW_FRAME (W))) \ | |
213 : 0)) | |
214 | |
215 /* 1 if window W takes up the full width of its frame. */ | |
216 | |
217 #define WINDOW_FULL_WIDTH_P(W) \ | |
218 (XFASTINT ((W)->width) == FRAME_WINDOW_WIDTH (XFRAME (WINDOW_FRAME (W)))) | |
219 | |
220 /* 1 if window W's has no other windows to its right in its frame. */ | |
221 | |
222 #define WINDOW_RIGHTMOST_P(W) \ | |
223 (WINDOW_RIGHT_EDGE (W) == FRAME_WINDOW_WIDTH (XFRAME (WINDOW_FRAME (W)))) | |
224 | |
191 /* This is the window in which the terminal's cursor should | 225 /* This is the window in which the terminal's cursor should |
192 be left when nothing is being done with it. This must | 226 be left when nothing is being done with it. This must |
193 always be a leaf window, and its buffer is selected by | 227 always be a leaf window, and its buffer is selected by |
194 the top level editing loop at the end of each command. | 228 the top level editing loop at the end of each command. |
195 | 229 |