Lines Matching refs:height

156  * Returns minimum width and height that will preserve the same layout.
160 static void DoLayout(bbw, width, height, reply_width, reply_height, position)
162 Dimension width, height;
168 Dimension w, h; /* Width and height needed for box */
169 Dimension lw, lh; /* Width and height needed for current line */
170 Dimension bw, bh; /* Width and height needed for current widget */
175 /* Box width and height */
187 /* Line width and height */
211 DoLayout(bbw, lw + bw, height, reply_width,
219 * situations (e.g. when only the height changes --
234 bh = widget->core.height + 2*widget->core.border_width;
239 if (!vbox && width && lw > width && lh < height) {
240 /* reduce width if too wide and height not filled */
245 while (sh < height && sw > width) {
247 DoLayout(bbw, sw-1, height, &sw, &sh, False);
249 if (sh < height) width_needed = sw;
251 DoLayout(bbw,width_needed,height,reply_width,reply_height,position);
259 DoLayout( bbw, w, height, reply_width, reply_height, position );
296 Dimension width /*, height */;
310 constraint->height == w->box.last_query_height)) {
314 preferred->height = preferred_height;
317 constraint->height == preferred_height)
326 width that will fit me within the height constraint */
330 w->box.last_query_height= constraint->height;
340 /* height is currently ignored by DoLayout.
341 height = (constraint->request_mode & CWHeight) ? constraint->height
348 preferred_height > constraint->height) {
349 /* find minimum width for this height */
355 do { /* find some width big enough to stay within this height */
359 } while (preferred_height > constraint->height &&
366 } while (preferred_height < constraint->height);
375 preferred->height = w->box.preferred_height = preferred_height;
379 && constraint->height == preferred_height)
397 DoLayout((BoxWidget)w, w->core.width, w->core.height, &junk, &junk, TRUE);
403 * Try to do a new layout within the current width and height;
417 DoLayout( bbw, bbw->core.width, bbw->core.height,
425 (bbw->core.height == preferred_height)) {
444 DoLayout( bbw, bbw->core.width, bbw->core.height,
447 (preferred_height <= bbw->core.height))
469 /* recalc bounding box; height might change */
477 constraints.height = proposed_height;
502 Dimension width, height, borderWidth;
517 request->height = w->core.height;
523 height = w->core.height;
526 w->core.height = request->height;
538 (request->height + request->border_width <= height + borderWidth))
540 || bbw->box.preferred_height < bbw->core.height
550 w->core.height = height;
591 if (newbbw->core.height == 0)
592 newbbw->core.height = newbbw->box.preferred_height;