Lines Matching refs:width

135  * Returns minimum width and height that will preserve the same layout.
139 static void DoLayout(bbw, width, height, reply_width, reply_height, position)
141 Dimension width, height;
154 /* Box width and height */
159 /* Line width and height */
167 /* Compute widget width */
168 bw = widget->core.width + 2*widget->core.border_width + h_space;
169 if (lw + bw > width) {
211 if (!vbox && width && lw > width && lh < height) {
212 /* reduce width if too wide and height not filled */
217 while (sh < height && sw > width) {
267 Dimension width /*, height */;
279 constraint->width == w->box.last_query_width) &&
284 preferred->width = preferred_width;
287 constraint->width == preferred_width &&
295 I have a preference for tall and narrow, so if my width is
297 width that will fit me within the height constraint */
300 w->box.last_query_width = constraint->width;
304 width = constraint->width;
307 width = 0;
308 constraint->width = 65535;
315 DoLayout(w, width, (Dimension)0,
320 /* find minimum width for this height */
321 if (preferred_width > constraint->width) {
325 width = preferred_width;
326 do { /* find some width big enough to stay within this height */
327 width *= 2;
328 if (width > constraint->width) width = constraint->width;
329 DoLayout(w, width, 0, &preferred_width, &preferred_height, FALSE);
331 width < constraint->width);
332 if (width != constraint->width) {
333 do { /* find minimum width */
334 width = preferred_width;
339 DoLayout(w, width, 0, &preferred_width, &preferred_height, FALSE);
345 preferred->width = w->box.preferred_width = preferred_width;
349 && constraint->width == preferred_width
368 DoLayout((BoxWidget)w, w->core.width, w->core.height, &junk, &junk, TRUE);
374 * Try to do a new layout within the current width and height;
388 DoLayout( bbw, bbw->core.width, bbw->core.height,
392 than bbw->core.width unless some child is larger, so there's no
395 if ((bbw->core.width == preferred_width) &&
415 DoLayout( bbw, bbw->core.width, bbw->core.height,
417 if ((preferred_width <= bbw->core.width) &&
473 Dimension width, height, borderWidth;
486 request->width = w->core.width;
493 width = w->core.width;
496 w->core.width = request->width;
508 if (((request->width + request->border_width <= width + borderWidth) &&
510 || bbw->box.preferred_width < bbw->core.width
520 w->core.width = width;
557 if (newbbw->core.width == 0)
558 newbbw->core.width = newbbw->box.preferred_width;