Lines Matching refs:fw
240 FormWidget fw = (FormWidget)new;
242 fw->form.old_width = fw->core.width;
243 fw->form.old_height = fw->core.height;
244 fw->form.no_refigure = False;
245 fw->form.needs_relayout = False;
246 fw->form.resize_in_layout = True;
247 fw->form.resize_is_no_op = False;
267 FormWidget fw = (FormWidget) w;
277 if ( (width == fw->core.width) && (height == fw->core.height) )
290 fw->form.resize_is_no_op = TRUE;
301 fw->form.resize_is_no_op = FALSE;
313 * Arguments: fw - the Form widget.
323 static Boolean Layout(fw, width, height, force_relayout)
324 FormWidget fw;
328 long num_children = fw->composite.num_children;
329 WidgetList children = fw->composite.children;
361 fw->form.preferred_width = (maxx += fw->form.default_spacing);
362 fw->form.preferred_height = (maxy += fw->form.default_spacing);
364 if (fw->form.resize_in_layout) {
368 ChangeFormGeometry( (Widget) fw, FALSE, maxx, maxy,
371 fw->form.old_width = fw->core.width;
372 fw->form.old_height = fw->core.height;
374 ret_val = (always_resize_children || ( (fw->core.width >= maxx) &&
375 (fw->core.height >= maxy)));
381 ResizeChildren((Widget) fw);
386 fw->form.needs_relayout = False;
399 FormWidget fw = (FormWidget) w;
400 long num_children = fw->composite.num_children;
401 WidgetList children = fw->composite.children;
411 if (fw->form.no_refigure) {
498 FormWidget fw = (FormWidget)w;
499 WidgetList children = fw->composite.children;
500 long num_children = fw->composite.num_children;
505 if (!fw->form.resize_is_no_op)
509 x = TransformCoord( (*childP)->core.x, fw->form.old_width,
510 fw->core.width, form->form.left );
511 y = TransformCoord( (*childP)->core.y, fw->form.old_height,
512 fw->core.height, form->form.top );
518 fw->form.old_width, fw->core.width,
526 fw->form.old_height, fw->core.height,
539 fw->form.old_width = fw->core.width;
540 fw->form.old_height = fw->core.height;
554 FormWidget fw = (FormWidget) XtParent(w);
566 if (fw->form.needs_relayout)
567 (*((FormWidgetClass)fw->core.widget_class)->form_class.layout)
568 (fw, 0, 0, True);
588 if (fw->form.needs_relayout)
589 (*((FormWidgetClass)fw->core.widget_class)->form_class.layout)
590 (fw, 0, 0, True);
607 fw->form.resize_in_layout = FALSE;
609 (*((FormWidgetClass)fw->core.widget_class)->form_class.layout)
610 ( fw, w->core.width, w->core.height,
620 fw->form.resize_in_layout = TRUE;
623 fw->form.preferred_width,
624 fw->form.preferred_height,
628 ((ret_width >= fw->form.preferred_width) &&
629 (ret_height >= fw->form.preferred_height)))
637 if ((*((FormWidgetClass)fw->core.widget_class)->form_class.layout)
638 ( fw, w->core.width, w->core.height,
643 if (fw->form.no_refigure) {
685 FormWidget fw = (FormWidget)new->core.parent;
691 form->form.dx = fw->form.default_spacing;
694 form->form.dy = fw->form.default_spacing;
738 FormWidget fw = (FormWidget)w;
741 long num_children = fw->composite.num_children;
748 for (children = childP = fw->composite.children ;
820 FormWidget fw = (FormWidget)w;
821 long num_children = fw->composite.num_children;
822 WidgetList children = fw->composite.children;
824 if ( ((fw->form.no_refigure = !doit) == TRUE) || !XtIsRealized(w) )