Lines Matching refs:form

62 #define Offset(field) XtOffsetOf(FormRec, form.field)
71 #define Offset(field) XtOffsetOf(FormConstraintsRec, form.field)
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;
251 * Description: Ask the parent to change the form widget's geometry.
255 * ret_width, ret_height - the actual size the form is allowed
290 fw->form.resize_is_no_op = TRUE;
301 fw->form.resize_is_no_op = FALSE;
317 * of the form.
335 FormConstraints form = (FormConstraints)(*childP)->core.constraints;
336 form->form.layout_state = LayoutPending;
342 FormConstraints form;
345 form = (FormConstraints)(*childP)->core.constraints;
349 x = form->form.new_x + (*childP)->core.width +
354 y = form->form.new_y + (*childP)->core.height +
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) {
371 fw->form.old_width = fw->core.width;
372 fw->form.old_height = fw->core.height;
386 fw->form.needs_relayout = False;
392 * Arguments: w - the form widget.
405 FormConstraints form;
410 form = (FormConstraints)(*childP)->core.constraints;
411 if (fw->form.no_refigure) {
419 (*childP)->core.x = form->form.new_x;
420 (*childP)->core.y = form->form.new_y;
423 XtMoveWidget(*childP, form->form.new_x, form->form.new_y);
431 FormConstraints form = (FormConstraints)w->core.constraints;
434 switch (form->form.layout_state) {
437 form->form.layout_state = LayoutInProgress;
457 form->form.new_x = form->form.dx;
458 form->form.new_y = form->form.dy;
459 if ((ref = form->form.horiz_base) != (Widget)NULL) {
463 form->form.new_x += (ref_form->form.new_x +
466 if ((ref = form->form.vert_base) != (Widget)NULL) {
470 form->form.new_y += (ref_form->form.new_y +
474 form->form.layout_state = LayoutDone;
505 if (!fw->form.resize_is_no_op)
507 FormConstraints form= (FormConstraints)(*childP)->core.constraints;
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 );
514 form->form.virtual_width =
516 + form->form.virtual_width
518 fw->form.old_width, fw->core.width,
519 form->form.right )
522 form->form.virtual_height =
524 + form->form.virtual_height
526 fw->form.old_height, fw->core.height,
527 form->form.bottom )
531 (form->form.virtual_width < 1) ? 1 : form->form.virtual_width;
533 (form->form.virtual_height < 1) ? 1 : form->form.virtual_height;
539 fw->form.old_width = fw->core.width;
540 fw->form.old_height = fw->core.height;
555 FormConstraints form = (FormConstraints) w->core.constraints;
560 !form->form.allow_resize) {
566 if (fw->form.needs_relayout)
588 if (fw->form.needs_relayout)
607 fw->form.resize_in_layout = FALSE;
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)))
641 form->form.virtual_width = w->core.width; /* reset virtual */
642 form->form.virtual_height = w->core.height; /* width and height. */
643 if (fw->form.no_refigure) {
651 form->form.deferred_resize = True;
684 FormConstraints form = (FormConstraints)new->core.constraints;
687 form->form.virtual_width = (int) new->core.width;
688 form->form.virtual_height = (int) new->core.height;
690 if (form->form.dx == default_value)
691 form->form.dx = fw->form.default_spacing;
693 if (form->form.dy == default_value)
694 form->form.dy = fw->form.default_spacing;
696 form->form.deferred_resize = False;
708 if (cfc->form.top != nfc->form.top ||
709 cfc->form.bottom != nfc->form.bottom ||
710 cfc->form.left != nfc->form.left ||
711 cfc->form.right != nfc->form.right ||
712 cfc->form.dx != nfc->form.dx ||
713 cfc->form.dy != nfc->form.dy ||
714 cfc->form.horiz_base != nfc->form.horiz_base ||
715 cfc->form.vert_base != nfc->form.vert_base) {
730 else fp->form.needs_relayout = True;
739 FormConstraints form;
752 form = (FormConstraints)child->core.constraints;
757 * width or height one (1) in a form widget he will lose, can't win them all.
763 form->form.virtual_width = (int) child->core.width;
765 form->form.virtual_height = (int) child->core.height;
780 reply->width = w->form.preferred_width;
781 reply->height = w->form.preferred_height;
824 if ( ((fw->form.no_refigure = !doit) == TRUE) || !XtIsRealized(w) )
830 FormConstraints form = (FormConstraints)w->core.constraints;
841 if (form->form.deferred_resize &&
844 form->form.deferred_resize = False;