Lines Matching refs:bbw

139 static void DoLayout(bbw, width, height, reply_width, reply_height, position)
140 BoxWidget bbw;
145 Boolean vbox = (bbw->box.orientation == XtorientVertical);
150 Dimension h_space; /* Local copy of bbw->box.h_space */
155 h_space = bbw->box.h_space;
157 h = bbw->box.v_space;
163 for (i = 0; i < bbw->composite.num_children; i++) {
164 widget = bbw->composite.children[i];
176 h += lh + bbw->box.v_space;
183 DoLayout(bbw, lw + bw, height, reply_width,
203 XtMoveWidget(bbw->composite.children[i], (int)lw, (int)h);
215 XtOrientation orientation = bbw->box.orientation;
216 bbw->box.orientation = XtorientVertical;
219 DoLayout(bbw, sw-1, height, &sw, &sh, False);
223 DoLayout(bbw,width_needed,height,reply_width,reply_height,position);
224 bbw->box.orientation = orientation;
227 bbw->box.orientation = orientation;
230 if (position && XtIsRealized((Widget)bbw)) {
231 if (bbw->composite.num_children == num_mapped_children)
232 XMapSubwindows( XtDisplay((Widget)bbw), XtWindow((Widget)bbw) );
235 register Widget *childP = bbw->composite.children;
249 h += lh + bbw->box.v_space;
381 static Boolean TryNewLayout(bbw)
382 BoxWidget bbw;
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) &&
396 (bbw->core.height == preferred_height)) {
406 switch (XtMakeResizeRequest((Widget)bbw,proposed_width,proposed_height,
415 DoLayout( bbw, bbw->core.width, bbw->core.height,
417 if ((preferred_width <= bbw->core.width) &&
418 (preferred_height <= bbw->core.height))
434 (void) XtMakeResizeRequest( (Widget)bbw,
441 DoLayout(bbw, proposed_width, 0,
449 (void)PreferredSize((Widget)bbw, &constraints, &reply);
474 BoxWidget bbw;
504 bbw = (BoxWidget) w->core.parent;
510 || bbw->box.preferred_width < bbw->core.width
511 || bbw->box.preferred_height < bbw->core.height
512 || TryNewLayout(bbw)) {
514 if (TryNewLayout(bbw)) {
516 (*XtClass((Widget)bbw)->core_class.resize)((Widget)bbw);