Lines Matching refs:width
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;
175 /* Box width and height */
180 if ( bbw->composite.children[i]->core.width > w )
181 w = bbw->composite.children[i]->core.width;
184 if ( w > width ) width = w;
187 /* Line width and height */
195 /* Compute widget width */
196 bw = widget->core.width + 2*widget->core.border_width + h_space;
197 if ((Dimension)(lw + bw) > 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) {
257 if ( vbox && ( ( width < w ) || ( width < lw ) ) ) {
296 Dimension width /*, height */;
308 constraint->width == w->box.last_query_width) &&
313 preferred->width = preferred_width;
316 constraint->width == preferred_width &&
324 I have a preference for tall and narrow, so if my width is
326 width that will fit me within the height constraint */
329 w->box.last_query_width = constraint->width;
333 width = constraint->width;
336 width = 0;
337 constraint->width = 65535;
344 DoLayout(w, width, (Dimension)0,
349 /* find minimum width for this height */
350 if (preferred_width > constraint->width) {
354 width = preferred_width;
355 do { /* find some width big enough to stay within this height */
356 width *= 2;
357 if (width > constraint->width) width = constraint->width;
358 DoLayout(w, width, 0, &preferred_width, &preferred_height, FALSE);
360 width < constraint->width);
361 if (width != constraint->width) {
362 do { /* find minimum width */
363 width = preferred_width;
368 DoLayout(w, width, 0, &preferred_width, &preferred_height, FALSE);
374 preferred->width = w->box.preferred_width = preferred_width;
378 && constraint->width == preferred_width
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,
421 than bbw->core.width unless some child is larger, so there's no
424 if ((bbw->core.width == preferred_width) &&
444 DoLayout( bbw, bbw->core.width, bbw->core.height,
446 if ((preferred_width <= bbw->core.width) &&
502 Dimension width, height, borderWidth;
515 request->width = w->core.width;
522 width = w->core.width;
525 w->core.width = request->width;
537 if (((request->width + request->border_width <= width + borderWidth) &&
539 || bbw->box.preferred_width < bbw->core.width
549 w->core.width = width;
588 if (newbbw->core.width == 0)
589 newbbw->core.width = newbbw->box.preferred_width;