aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-21 03:31:53 +0000
committerRichard M. Stallman1996-09-21 03:31:53 +0000
commit8516ba9afe0266423a1666b05d1032345a139457 (patch)
treed63cec944e9ca1907a5af85b0fe5626cea903585 /src
parent3a43d2dd7032a863d25eff0b3ff1a5db7d8fe344 (diff)
downloademacs-8516ba9afe0266423a1666b05d1032345a139457.tar.gz
emacs-8516ba9afe0266423a1666b05d1032345a139457.zip
(WINDOW_LEFT_MARGIN): New macro.
(WINDOW_RIGHT_EDGE, WINDOW_RIGHT_MARGIN): New macros. (WINDOW_FULL_WIDTH_P, WINDOW_RIGHTMOST_P): New macros.
Diffstat (limited to 'src')
-rw-r--r--src/window.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index 0b0e0aa256d..ba2f81e53d2 100644
--- a/src/window.h
+++ b/src/window.h
@@ -188,6 +188,40 @@ struct 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