Lines Matching refs:tc

389     TreeConstraints tc = TREE_CONSTRAINT(new);
395 tc->tree.n_children = 0;
396 tc->tree.max_children = 0;
397 tc->tree.children = (Widget *) NULL;
398 tc->tree.x = tc->tree.y = 0;
399 tc->tree.bbsubwidth = 0;
400 tc->tree.bbsubheight = 0;
408 if (tc->tree.parent)
409 insert_node (tc->tree.parent, new);
498 TreeConstraints tc = TREE_CONSTRAINT(w);
508 if (tc->tree.n_children > 0)
509 tw->tree.tree_root = tc->tree.children[0];
514 delete_node (tc->tree.parent, (Widget) w);
515 for (i = 0; i< tc->tree.n_children; i++)
516 insert_node (tc->tree.parent, tc->tree.children[i]);
587 TreeConstraints tc = TREE_CONSTRAINT(child);
592 if (child != tw->tree.tree_root && tc->tree.n_children) {
612 for (j = 0; j < tc->tree.n_children; j++) {
613 Widget k = tc->tree.children[j];
614 GC gc = (tc->tree.gc ? tc->tree.gc : tw->tree.gc);
706 TreeConstraints tc = TREE_CONSTRAINT(w); /* info attached to all kids */
727 tc->tree.bbwidth = w->core.width + bw2;
728 tc->tree.bbheight = w->core.height + bw2;
730 if (tc->tree.n_children == 0) return;
739 for (i = 0; i < tc->tree.n_children; i++) {
740 Widget child = tc->tree.children[i];
755 tc->tree.bbsubwidth = newwidth;
756 tc->tree.bbsubheight = newheight;
763 tc->tree.bbwidth += tree->tree.hpad + newwidth;
765 if (newheight > tc->tree.bbheight) tc->tree.bbheight = newheight;
767 tc->tree.bbheight += tree->tree.vpad + newheight;
769 if (newwidth > tc->tree.bbwidth) tc->tree.bbwidth = newwidth;
782 TreeConstraints tc = TREE_CONSTRAINT(w);
790 tc->tree.x = (((Position) tw->tree.maxwidth) -
791 ((Position) w->core.width) - tc->tree.x);
795 tc->tree.y = (((Position) tw->tree.maxheight) -
796 ((Position) w->core.height) - tc->tree.y);
803 XtMoveWidget (w, tc->tree.x, tc->tree.y);
809 for (i = 0; i < tc->tree.n_children; i++)
810 set_positions (tw, tc->tree.children[i], level + 1);
821 TreeConstraints tc = TREE_CONSTRAINT(w); /* info attached to all kids */
835 tc->tree.x = x;
836 tc->tree.y = y;
841 if (myh > (int)tc->tree.bbsubheight) {
842 y += (myh - (int)tc->tree.bbsubheight) / 2;
848 if (myw > (int)tc->tree.bbsubwidth) {
849 x += (myw - (int)tc->tree.bbsubwidth) / 2;
854 if ((tmp = ((Dimension) x) + tc->tree.bbwidth) > tree->tree.maxwidth)
856 if ((tmp = ((Dimension) y) + tc->tree.bbheight) > tree->tree.maxheight)
859 if (tc->tree.n_children == 0) return;
876 for (i = 0; i < tc->tree.n_children; i++) {
879 child = tc->tree.children[i]; /* last value is used outside loop */
895 firstcc = TREE_CONSTRAINT (tc->tree.children[0]);
903 tc->tree.x = x;
909 if (adjusted > tc->tree.y) tc->tree.y = adjusted;
916 if (adjusted > tc->tree.x) tc->tree.x = adjusted;
917 tc->tree.y = y;