Lines Matching defs:bbw
160 static void DoLayout(bbw, width, height, reply_width, reply_height, position)
161 BoxWidget bbw;
166 Boolean vbox = (bbw->box.orientation == XtorientVertical);
171 Dimension h_space; /* Local copy of bbw->box.h_space */
176 h_space = bbw->box.h_space;
179 for (i = 0; i < bbw->composite.num_children; i++) {
180 if ( bbw->composite.children[i]->core.width > w )
181 w = bbw->composite.children[i]->core.width;
185 h = bbw->box.v_space;
191 for (i = 0; i < bbw->composite.num_children; i++) {
192 widget = bbw->composite.children[i];
204 h += lh + bbw->box.v_space;
211 DoLayout(bbw, lw + bw, height, reply_width,
243 XtOrientation orientation = bbw->box.orientation;
244 bbw->box.orientation = XtorientVertical;
247 DoLayout(bbw, sw-1, height, &sw, &sh, False);
251 DoLayout(bbw,width_needed,height,reply_width,reply_height,position);
252 bbw->box.orientation = orientation;
255 bbw->box.orientation = orientation;
259 DoLayout( bbw, w, height, reply_width, reply_height, position );
262 if (position && XtIsRealized((Widget)bbw)) {
263 if (bbw->composite.num_children == num_mapped_children)
264 XMapSubwindows( XtDisplay((Widget)bbw), XtWindow((Widget)bbw) );
266 int i = bbw->composite.num_children;
267 Widget *childP = bbw->composite.children;
278 h += lh + bbw->box.v_space;
410 static Boolean TryNewLayout(bbw)
411 BoxWidget bbw;
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) &&
425 (bbw->core.height == preferred_height)) {
435 switch (XtMakeResizeRequest((Widget)bbw,proposed_width,proposed_height,
444 DoLayout( bbw, bbw->core.width, bbw->core.height,
446 if ((preferred_width <= bbw->core.width) &&
447 (preferred_height <= bbw->core.height))
463 (void) XtMakeResizeRequest( (Widget)bbw,
470 DoLayout(bbw, proposed_width, 0,
478 (void)PreferredSize((Widget)bbw, &constraints, &reply);
503 BoxWidget bbw;
533 bbw = (BoxWidget) w->core.parent;
539 || bbw->box.preferred_width < bbw->core.width
540 || bbw->box.preferred_height < bbw->core.height
541 || TryNewLayout(bbw)) {
543 if (TryNewLayout(bbw)) {
545 (*XtClass((Widget)bbw)->core_class.resize)((Widget)bbw);