diff options
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/src/window.h b/src/window.h index b91161f4d32..05b4680471b 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -287,78 +287,78 @@ struct window | |||
| 287 | int header_line_height; | 287 | int header_line_height; |
| 288 | 288 | ||
| 289 | /* Z - the buffer position of the last glyph in the current | 289 | /* Z - the buffer position of the last glyph in the current |
| 290 | matrix of W. Only valid if window_end_valid is nonzero. */ | 290 | matrix of W. Only valid if window_end_valid is true. */ |
| 291 | ptrdiff_t window_end_pos; | 291 | ptrdiff_t window_end_pos; |
| 292 | 292 | ||
| 293 | /* Glyph matrix row of the last glyph in the current matrix | 293 | /* Glyph matrix row of the last glyph in the current matrix |
| 294 | of W. Only valid if window_end_valid is nonzero. */ | 294 | of W. Only valid if window_end_valid is true. */ |
| 295 | int window_end_vpos; | 295 | int window_end_vpos; |
| 296 | 296 | ||
| 297 | /* Non-zero if this window is a minibuffer window. */ | 297 | /* True if this window is a minibuffer window. */ |
| 298 | unsigned mini : 1; | 298 | bool_bf mini : 1; |
| 299 | 299 | ||
| 300 | /* Meaningful only if contents is a window, non-zero if this | 300 | /* Meaningful only if contents is a window, non-zero if this |
| 301 | internal window is used in horizontal combination. */ | 301 | internal window is used in horizontal combination. */ |
| 302 | unsigned horizontal : 1; | 302 | bool_bf horizontal : 1; |
| 303 | 303 | ||
| 304 | /* Non-zero means must regenerate mode line of this window. */ | 304 | /* True means must regenerate mode line of this window. */ |
| 305 | unsigned update_mode_line : 1; | 305 | bool_bf update_mode_line : 1; |
| 306 | 306 | ||
| 307 | /* Non-nil if the buffer was "modified" when the window | 307 | /* True if the buffer was "modified" when the window |
| 308 | was last updated. */ | 308 | was last updated. */ |
| 309 | unsigned last_had_star : 1; | 309 | bool_bf last_had_star : 1; |
| 310 | 310 | ||
| 311 | /* Non-zero means current value of `start' | 311 | /* True means current value of `start' |
| 312 | was the beginning of a line when it was chosen. */ | 312 | was the beginning of a line when it was chosen. */ |
| 313 | unsigned start_at_line_beg : 1; | 313 | bool_bf start_at_line_beg : 1; |
| 314 | 314 | ||
| 315 | /* Non-zero means next redisplay must use the value of start | 315 | /* True means next redisplay must use the value of start |
| 316 | set up for it in advance. Set by scrolling commands. */ | 316 | set up for it in advance. Set by scrolling commands. */ |
| 317 | unsigned force_start : 1; | 317 | bool_bf force_start : 1; |
| 318 | 318 | ||
| 319 | /* Non-zero means we have explicitly changed the value of start, | 319 | /* True means we have explicitly changed the value of start, |
| 320 | but that the next redisplay is not obliged to use the new value. | 320 | but that the next redisplay is not obliged to use the new value. |
| 321 | This is used in Fdelete_other_windows to force a call to | 321 | This is used in Fdelete_other_windows to force a call to |
| 322 | Vwindow_scroll_functions; also by Frecenter with argument. */ | 322 | Vwindow_scroll_functions; also by Frecenter with argument. */ |
| 323 | unsigned optional_new_start : 1; | 323 | bool_bf optional_new_start : 1; |
| 324 | 324 | ||
| 325 | /* Non-zero means the cursor is currently displayed. This can be | 325 | /* True means the cursor is currently displayed. This can be |
| 326 | set to zero by functions overpainting the cursor image. */ | 326 | set to zero by functions overpainting the cursor image. */ |
| 327 | unsigned phys_cursor_on_p : 1; | 327 | bool_bf phys_cursor_on_p : 1; |
| 328 | 328 | ||
| 329 | /* 0 means cursor is logically on, 1 means it's off. Used for | 329 | /* False means cursor is logically on, true means it's off. Used for |
| 330 | blinking cursor. */ | 330 | blinking cursor. */ |
| 331 | unsigned cursor_off_p : 1; | 331 | bool_bf cursor_off_p : 1; |
| 332 | 332 | ||
| 333 | /* Value of cursor_off_p as of the last redisplay. */ | 333 | /* Value of cursor_off_p as of the last redisplay. */ |
| 334 | unsigned last_cursor_off_p : 1; | 334 | bool_bf last_cursor_off_p : 1; |
| 335 | 335 | ||
| 336 | /* 1 means desired matrix has been build and window must be | 336 | /* True means desired matrix has been build and window must be |
| 337 | updated in update_frame. */ | 337 | updated in update_frame. */ |
| 338 | unsigned must_be_updated_p : 1; | 338 | bool_bf must_be_updated_p : 1; |
| 339 | 339 | ||
| 340 | /* Flag indicating that this window is not a real one. | 340 | /* Flag indicating that this window is not a real one. |
| 341 | Currently only used for menu bar windows of frames. */ | 341 | Currently only used for menu bar windows of frames. */ |
| 342 | unsigned pseudo_window_p : 1; | 342 | bool_bf pseudo_window_p : 1; |
| 343 | 343 | ||
| 344 | /* Non-zero means fringes are drawn outside display margins. | 344 | /* True means fringes are drawn outside display margins. |
| 345 | Otherwise draw them between margin areas and text. */ | 345 | Otherwise draw them between margin areas and text. */ |
| 346 | unsigned fringes_outside_margins : 1; | 346 | bool_bf fringes_outside_margins : 1; |
| 347 | 347 | ||
| 348 | /* Nonzero if window_end_pos and window_end_vpos are truly valid. | 348 | /* True if window_end_pos and window_end_vpos are truly valid. |
| 349 | This is zero if nontrivial redisplay is preempted since in that case | 349 | This is false if nontrivial redisplay is preempted since in that case |
| 350 | the frame image that window_end_pos did not get onto the frame. */ | 350 | the frame image that window_end_pos did not get onto the frame. */ |
| 351 | unsigned window_end_valid : 1; | 351 | bool_bf window_end_valid : 1; |
| 352 | 352 | ||
| 353 | /* True if it needs to be redisplayed. */ | 353 | /* True if it needs to be redisplayed. */ |
| 354 | unsigned redisplay : 1; | 354 | bool_bf redisplay : 1; |
| 355 | 355 | ||
| 356 | /* Amount by which lines of this window are scrolled in | 356 | /* Amount by which lines of this window are scrolled in |
| 357 | y-direction (smooth scrolling). */ | 357 | y-direction (smooth scrolling). */ |
| 358 | int vscroll; | 358 | int vscroll; |
| 359 | 359 | ||
| 360 | /* Z_BYTE - buffer position of the last glyph in the current matrix of W. | 360 | /* Z_BYTE - buffer position of the last glyph in the current matrix of W. |
| 361 | Should be nonnegative, and only valid if window_end_valid is nonzero. */ | 361 | Should be nonnegative, and only valid if window_end_valid is true. */ |
| 362 | ptrdiff_t window_end_bytepos; | 362 | ptrdiff_t window_end_bytepos; |
| 363 | }; | 363 | }; |
| 364 | 364 | ||
| @@ -412,7 +412,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 412 | w->next_buffers = val; | 412 | w->next_buffers = val; |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | /* 1 if W is a minibuffer window. */ | 415 | /* True if W is a minibuffer window. */ |
| 416 | 416 | ||
| 417 | #define MINI_WINDOW_P(W) ((W)->mini) | 417 | #define MINI_WINDOW_P(W) ((W)->mini) |
| 418 | 418 | ||
| @@ -443,17 +443,17 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 443 | 443 | ||
| 444 | /* A handy macro. */ | 444 | /* A handy macro. */ |
| 445 | 445 | ||
| 446 | /* Non-zero if W is leaf (carry the buffer). */ | 446 | /* Non-nil if W is leaf (carry the buffer). */ |
| 447 | 447 | ||
| 448 | #define WINDOW_LEAF_P(W) \ | 448 | #define WINDOW_LEAF_P(W) \ |
| 449 | (BUFFERP ((W)->contents)) | 449 | (BUFFERP ((W)->contents)) |
| 450 | 450 | ||
| 451 | /* Non-zero if W is a member of horizontal combination. */ | 451 | /* True if W is a member of horizontal combination. */ |
| 452 | 452 | ||
| 453 | #define WINDOW_HORIZONTAL_COMBINATION_P(W) \ | 453 | #define WINDOW_HORIZONTAL_COMBINATION_P(W) \ |
| 454 | (WINDOWP ((W)->contents) && (W)->horizontal) | 454 | (WINDOWP ((W)->contents) && (W)->horizontal) |
| 455 | 455 | ||
| 456 | /* Non-zero if W is a member of vertical combination. */ | 456 | /* True if W is a member of vertical combination. */ |
| 457 | 457 | ||
| 458 | #define WINDOW_VERTICAL_COMBINATION_P(W) \ | 458 | #define WINDOW_VERTICAL_COMBINATION_P(W) \ |
| 459 | (WINDOWP ((W)->contents) && !(W)->horizontal) | 459 | (WINDOWP ((W)->contents) && !(W)->horizontal) |
| @@ -563,7 +563,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 563 | (FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W)) \ | 563 | (FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W)) \ |
| 564 | + WINDOW_RIGHT_PIXEL_EDGE (W)) | 564 | + WINDOW_RIGHT_PIXEL_EDGE (W)) |
| 565 | 565 | ||
| 566 | /* 1 if W is a menu bar window. */ | 566 | /* True if W is a menu bar window. */ |
| 567 | 567 | ||
| 568 | #if defined (HAVE_X_WINDOWS) && ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) | 568 | #if defined (HAVE_X_WINDOWS) && ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) |
| 569 | #define WINDOW_MENU_BAR_P(W) \ | 569 | #define WINDOW_MENU_BAR_P(W) \ |
| @@ -571,16 +571,16 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 571 | && (W) == XWINDOW (WINDOW_XFRAME (W)->menu_bar_window)) | 571 | && (W) == XWINDOW (WINDOW_XFRAME (W)->menu_bar_window)) |
| 572 | #else | 572 | #else |
| 573 | /* No menu bar windows if X toolkit is in use. */ | 573 | /* No menu bar windows if X toolkit is in use. */ |
| 574 | #define WINDOW_MENU_BAR_P(W) (0) | 574 | #define WINDOW_MENU_BAR_P(W) false |
| 575 | #endif | 575 | #endif |
| 576 | 576 | ||
| 577 | /* 1 if W is a tool bar window. */ | 577 | /* True if W is a tool bar window. */ |
| 578 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) | 578 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) |
| 579 | #define WINDOW_TOOL_BAR_P(W) \ | 579 | #define WINDOW_TOOL_BAR_P(W) \ |
| 580 | (WINDOWP (WINDOW_XFRAME (W)->tool_bar_window) \ | 580 | (WINDOWP (WINDOW_XFRAME (W)->tool_bar_window) \ |
| 581 | && (W) == XWINDOW (WINDOW_XFRAME (W)->tool_bar_window)) | 581 | && (W) == XWINDOW (WINDOW_XFRAME (W)->tool_bar_window)) |
| 582 | #else | 582 | #else |
| 583 | #define WINDOW_TOOL_BAR_P(W) (0) | 583 | #define WINDOW_TOOL_BAR_P(W) false |
| 584 | #endif | 584 | #endif |
| 585 | 585 | ||
| 586 | /* Return the frame y-position at which window W starts. | 586 | /* Return the frame y-position at which window W starts. |
| @@ -600,24 +600,24 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 600 | ? 0 : FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W))) \ | 600 | ? 0 : FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W))) \ |
| 601 | + WINDOW_BOTTOM_PIXEL_EDGE (W)) | 601 | + WINDOW_BOTTOM_PIXEL_EDGE (W)) |
| 602 | 602 | ||
| 603 | /* 1 if window W takes up the full width of its frame. */ | 603 | /* True if window W takes up the full width of its frame. */ |
| 604 | #define WINDOW_FULL_WIDTH_P(W) \ | 604 | #define WINDOW_FULL_WIDTH_P(W) \ |
| 605 | (WINDOW_PIXEL_WIDTH (W) \ | 605 | (WINDOW_PIXEL_WIDTH (W) \ |
| 606 | == (WINDOW_PIXEL_WIDTH \ | 606 | == (WINDOW_PIXEL_WIDTH \ |
| 607 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ | 607 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ |
| 608 | 608 | ||
| 609 | /* 1 if window W's has no other windows to its left in its frame. */ | 609 | /* True if window W's has no other windows to its left in its frame. */ |
| 610 | 610 | ||
| 611 | #define WINDOW_LEFTMOST_P(W) \ | 611 | #define WINDOW_LEFTMOST_P(W) \ |
| 612 | (WINDOW_LEFT_PIXEL_EDGE (W) == 0) | 612 | (WINDOW_LEFT_PIXEL_EDGE (W) == 0) |
| 613 | 613 | ||
| 614 | /* 1 if window W's has no other windows to its right in its frame. */ | 614 | /* True if window W's has no other windows to its right in its frame. */ |
| 615 | #define WINDOW_RIGHTMOST_P(W) \ | 615 | #define WINDOW_RIGHTMOST_P(W) \ |
| 616 | (WINDOW_RIGHT_PIXEL_EDGE (W) \ | 616 | (WINDOW_RIGHT_PIXEL_EDGE (W) \ |
| 617 | == (WINDOW_RIGHT_PIXEL_EDGE \ | 617 | == (WINDOW_RIGHT_PIXEL_EDGE \ |
| 618 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ | 618 | (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W)))))) \ |
| 619 | 619 | ||
| 620 | /* 1 if window W's has no other windows below it in its frame | 620 | /* True if window W's has no other windows below it in its frame |
| 621 | (the minibuffer window is not counted in this respect). */ | 621 | (the minibuffer window is not counted in this respect). */ |
| 622 | #define WINDOW_BOTTOMMOST_P(W) \ | 622 | #define WINDOW_BOTTOMMOST_P(W) \ |
| 623 | (WINDOW_BOTTOM_PIXEL_EDGE (W) \ | 623 | (WINDOW_BOTTOM_PIXEL_EDGE (W) \ |
| @@ -882,7 +882,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 882 | #define WINDOW_TEXT_TO_FRAME_PIXEL_X(W, X) \ | 882 | #define WINDOW_TEXT_TO_FRAME_PIXEL_X(W, X) \ |
| 883 | (window_box_left ((W), TEXT_AREA) + (X)) | 883 | (window_box_left ((W), TEXT_AREA) + (X)) |
| 884 | 884 | ||
| 885 | /* Nonzero if the background of the window W's fringe that is adjacent to | 885 | /* True if the background of the window W's fringe that is adjacent to |
| 886 | a scroll bar is extended to the gap between the fringe and the bar. */ | 886 | a scroll bar is extended to the gap between the fringe and the bar. */ |
| 887 | 887 | ||
| 888 | #define WINDOW_FRINGE_EXTENDED_P(w) \ | 888 | #define WINDOW_FRINGE_EXTENDED_P(w) \ |