Lines Matching refs:height
50 #define echo_area_required (1 + the_echo_area->height)
56 window_initialize_windows (int width, int height)
79 /* The height of the echo area never changes. It is statically set right
82 includes the echo area. So, we make the height of the initial window
83 equal to the screen's displayable region minus the height of the echo
85 the_echo_area->height = ECHO_AREA_HEIGHT;
86 active_window->height = the_screen->height - 1 - the_echo_area->height;
87 window_new_screen_size (width, height);
94 /* Given that the size of the screen has changed to WIDTH and HEIGHT
95 from whatever it was before (found in the_screen->height, ->width),
107 window_new_screen_size (int width, int height)
114 if (width == the_screen->width && height == the_screen->height)
117 /* If the new window height is too small, make it be zero. */
118 if (height < (WINDOW_MIN_SIZE + the_echo_area->height))
119 height = 0;
132 while ((height - echo_area_required) / numwins <= WINDOW_MIN_SIZE)
138 windows->height = 0;
161 /* The screen has changed height and width. */
162 delta_height = height - the_screen->height; /* This is how much. */
163 the_screen->height = height; /* This is the new height. */
167 the_echo_area->first_row = height - the_echo_area->height;
171 if ((!windows->next) && ((windows->height == 0) && (delta_height < 0)))
174 /* Divide the change in height among the available windows. */
178 /* Change the height of each window in the chain by delta_each. Change
179 the height of the last window in the chain by delta_each and by the
191 win->height += delta_each;
193 /* If the previous height of this window was zero, it was the only
196 if (win->height == delta_each)
197 win->height -= (1 + the_echo_area->height);
205 win->first_row = (win->prev->first_row + win->prev->height) + 1;
209 win->height += delta_leftover;
223 if ((delta_each < 0) && ((windows->height != 0) && windows->next))
227 avail = the_screen->height - (numwins + the_echo_area->height);
232 if ((win->height < WINDOW_MIN_HEIGHT) ||
233 (win->height > avail))
246 (win->prev->first_row + win->prev->height) + 1;
247 win->height = delta_each;
251 lastwin->height += delta_leftover;
273 if ((active_window->height / 2) < WINDOW_MIN_SIZE)
278 chain cannot start at window->height, since that is where the modeline
283 window->height = (active_window->height / 2) - 1;
288 (active_window->height - window->height);
297 /* Adjust the height of the old active window. */
298 active_window->height -= (window->height + 1);
300 active_window->first_row += (window->height + 1);
345 me->height += diff; \
346 next->height -= diff; \
353 me->height += diff; \
354 prev->height -= diff; \
361 me->height -= diff; \
362 next->height += diff; \
369 me->height -= diff; \
370 prev->height += diff; \
375 /* Change the height of WINDOW by AMOUNT. This also automagically adjusts
398 /* Change the height of this window by AMOUNT, if that is possible.
411 if ((window->height - abs_amount) < WINDOW_MIN_HEIGHT)
418 if (prev->height < next->height)
435 next_avail = next->height - WINDOW_MIN_SIZE;
438 prev_avail = prev->height - WINDOW_MIN_SIZE;
476 window->height++;
482 height--;
487 next->height--;
507 internal nodes as well, otherwise do not change the height of such
523 avail += win->height;
527 if (numwins <= 1 || !the_screen->height)
542 win->height = per_win_height;
547 last_adjusted->height += leftover;
553 win->first_row = win->prev->first_row + win->prev->height + 1;
679 window_to_fix->height += window->height + 1;
947 (line - window->pagetop > (window->height - 1)))
953 if (window_scroll_step < window->height)
958 else if ((line - window->pagetop > (window->height - 1)) &&
960 < window->height)))
963 window->pagetop = line - ((window->height - 1) / 2);
966 window->pagetop = line - ((window->height - 1) / 2);
1095 if (lines_remaining <= window->height)
1102 if (lines_remaining <= window->height)