Lines Matching defs:form

109 #define Offset(field) XtOffsetOf(FormRec, form.field)
136 #define Offset(field) XtOffsetOf(FormConstraintsRec, form.field)
286 /* form */
320 if (xaw->form.display_list)
321 XawRunDisplayList(w, xaw->form.display_list, event, region);
453 fw->form.old_width = fw->form.old_height = 0;
454 fw->form.no_refigure = False;
455 fw->form.needs_relayout = False;
456 fw->form.resize_in_layout = True;
457 fw->form.resize_is_no_op = False;
469 * ret_width - actual size the form is allowed to resize to (return)
473 * Ask the parent to change the form widget's geometry.
504 fw->form.resize_is_no_op = True;
515 fw->form.resize_is_no_op = False;
534 * go past the edge of the form
555 FormConstraints form = (FormConstraints)(*childP)->core.constraints;
556 form->form.layout_state = LayoutPending;
562 FormConstraints form;
565 form = (FormConstraints)(*childP)->core.constraints;
569 x = (Position)(form->form.new_x + XtWidth(*childP)
574 y = (Position)(form->form.new_y + XtHeight(*childP)
581 fw->form.preferred_width = (maxx = (Dimension)(maxx + fw->form.default_spacing));
582 fw->form.preferred_height = (maxy = (Dimension)(maxy + fw->form.default_spacing));
584 if (fw->form.resize_in_layout) {
591 fw->form.old_width = fw->core.width;
592 fw->form.old_height = fw->core.height;
607 fw->form.needs_relayout = False;
617 * w - form widget
631 FormConstraints form;
637 form = (FormConstraints)(*childP)->core.constraints;
639 if (fw->form.old_width && fw->form.old_height) {
640 x = (Position)TransformCoord(form->form.new_x, fw->form.old_width,
641 XtWidth(fw), form->form.left);
642 y = (Position)TransformCoord(form->form.new_y, fw->form.old_height,
643 XtHeight(fw), form->form.top);
646 x = form->form.new_x;
647 y = form->form.new_y;
650 if (fw->form.no_refigure) {
669 FormConstraints form = (FormConstraints)w->core.constraints;
672 switch (form->form.layout_state) {
674 form->form.layout_state = LayoutInProgress;
692 form->form.new_x = (Position)form->form.dx;
693 form->form.new_y = (Position)form->form.dy;
694 if ((ref = form->form.horiz_base) != NULL) {
698 form->form.new_x = (Position)(form->form.new_x
699 + (ref_form->form.new_x
703 if ((ref = form->form.vert_base) != NULL) {
707 form->form.new_y = (Position)(form->form.new_y
708 + (ref_form->form.new_y
713 form->form.layout_state = LayoutDone;
744 if (!fw->form.resize_is_no_op)
746 FormConstraints form = (FormConstraints)(*childP)->core.constraints;
752 x = TransformCoord(form->form.virtual_x, fw->form.old_width,
753 XtWidth(fw), form->form.left);
754 y = TransformCoord(form->form.virtual_y, fw->form.old_height,
755 XtHeight(fw), form->form.top);
756 width = TransformCoord(form->form.virtual_x +
757 form->form.virtual_width +
759 fw->form.old_width, XtWidth(fw),
760 form->form.right) -
762 height = TransformCoord(form->form.virtual_y +
763 form->form.virtual_height +
765 fw->form.old_height, XtHeight(fw),
766 form->form.bottom) -
769 x = TransformCoord(XtX(*childP), fw->form.old_width,
770 XtWidth(fw), form->form.left);
771 y = TransformCoord(XtY(*childP), fw->form.old_height,
772 XtHeight(fw), form->form.top);
773 width = TransformCoord(XtX(*childP) + form->form.virtual_width +
775 fw->form.old_width, XtWidth(fw),
776 form->form.right) -
778 height = TransformCoord(XtY(*childP) + form->form.virtual_height +
780 fw->form.old_height, XtHeight(fw),
781 form->form.bottom) -
783 form->form.virtual_width = (short)width;
784 form->form.virtual_height = (short)height;
800 fw->form.old_width = XtWidth(fw);
801 fw->form.old_height = XtHeight(fw);
812 FormConstraints form = (FormConstraints)w->core.constraints;
817 || !form->form.allow_resize) {
822 if (fw->form.needs_relayout)
843 if (fw->form.needs_relayout)
861 fw->form.resize_in_layout = False;
872 fw->form.resize_in_layout = True;
875 fw->form.preferred_width,
876 fw->form.preferred_height,
880 || (ret_width >= fw->form.preferred_width
881 && ret_height >= fw->form.preferred_height))
893 if (fw->form.no_refigure) {
903 form->form.deferred_resize = True;
912 fw->form.old_width = XtWidth(fw);
913 fw->form.old_height = XtHeight(fw);
921 nform->form.virtual_x = XtX(nw);
922 nform->form.virtual_y = XtY(nw);
924 nform->form.virtual_width = (short)XtWidth(nw);
925 nform->form.virtual_height = (short)XtHeight(nw);
968 FormConstraints form = (FormConstraints)cnew->core.constraints;
972 form->form.virtual_x = XtX(cnew);
973 form->form.virtual_y = XtY(cnew);
975 form->form.virtual_width = (short)XtWidth(cnew);
976 form->form.virtual_height = (short)XtHeight(cnew);
978 if (form->form.dx == default_value)
979 form->form.dx = fw->form.default_spacing;
981 if (form->form.dy == default_value)
982 form->form.dy = fw->form.default_spacing;
984 form->form.deferred_resize = False;
995 if (cfc->form.top != nfc->form.top || cfc->form.bottom != nfc->form.bottom
996 || cfc->form.left != nfc->form.left || cfc->form.right != nfc->form.right
997 || cfc->form.dx != nfc->form.dx || cfc->form.dy != nfc->form.dy
998 || cfc->form.horiz_base != nfc->form.horiz_base
999 || cfc->form.vert_base != nfc->form.vert_base) {
1014 fp->form.needs_relayout = True;
1030 fw->form.old_width = XtWidth(w);
1031 fw->form.old_height = XtHeight(w);
1035 FormConstraints form;
1039 form = (FormConstraints)child->core.constraints;
1041 form->form.virtual_x = XtX(child);
1042 form->form.virtual_y = XtY(child);
1044 form->form.virtual_width = (short)XtWidth(child);
1045 form->form.virtual_height = (short)XtHeight(child);
1055 reply->width = w->form.preferred_width;
1056 reply->height = w->form.preferred_height;
1089 if ((fw->form.no_refigure = !force) == True || !XtIsRealized(w))
1096 FormConstraints form = (FormConstraints)nw->core.constraints;
1105 if (form)
1106 if (form->form.deferred_resize &&
1109 form->form.deferred_resize = False;