Lines Matching refs:childP
89 #define ForAllPanes(pw, childP) \
90 for ((childP) = (pw)->composite.children; \
91 (childP) < (pw)->composite.children + (pw)->paned.num_panes; \
92 (childP)++)
94 #define ForAllChildren(pw, childP) \
95 for ((childP) = (pw)->composite.children; \
96 (childP) < (pw)->composite.children + (pw)->composite.num_children; \
97 (childP)++)
504 Widget *childP;
509 ForAllPanes(pw, childP) {
510 int size = Max(PaneInfo(*childP)->size, (int)PaneInfo(*childP)->min);
512 AssignMin(size, (int)PaneInfo(*childP)->max);
590 Widget *childP;
600 childP = pw->composite.children + _index;
604 Pane pane = PaneInfo(*childP);
609 && (paneindex != PaneIndex(*childP) || dir == AnyPane))
618 --childP;
620 ++childP;
626 if ((childP - pw->composite.children) < 0 ||
627 (childP - pw->composite.children) >= pw->paned.num_panes) {
630 childP = pw->composite.children + _index;
736 Widget *childP;
747 ForAllPanes(pw, childP) {
748 Pane pane = PaneInfo(*childP);
779 ForAllPanes(pw, childP) {
780 PaneInfo(*childP)->delta = loc;
781 loc = (Position)(loc + (PaneInfo(*childP)->size + pw->paned.internal_bw));
798 Widget *childP;
801 ForAllPanes(pw, childP) {
802 Pane pane = PaneInfo(*childP);
806 XtMoveWidget(*childP, (Position) 0, pane->delta);
807 XtResizeWidget(*childP, XtWidth(pw), (Dimension)pane->size, 0);
809 if (HasGrip(*childP)) { /* Move and Display the Grip */
812 changes.y = XtY(*childP) + XtHeight(*childP) -
818 XtMoveWidget(*childP, pane->delta, 0);
819 XtResizeWidget(*childP, (Dimension)pane->size, (Dimension)XtHeight(pw), 0);
821 if (HasGrip(*childP)) { /* Move and Display the Grip */
822 changes.x = XtX(*childP) + XtWidth(*childP) -
835 if (HasGrip(*childP)) {
914 Widget *childP;
929 ForAllPanes(pw, childP) {
930 int on_loc = IsVert(pw) ? XtY(*childP) : XtX(*childP);
955 Widget *childP;
963 ForAllPanes(pw, childP) {
964 pane = PaneInfo(*childP);
968 on_loc = PaneInfo(*childP)->olddelta - (int) on_size;
973 on_loc = PaneInfo(*childP)->delta - (int)on_size;
1045 Widget *childP;
1089 ForAllPanes(pw, childP)
1090 PaneInfo(*childP)->olddelta = -99;
1260 Widget *unmanagedP, *childP;
1263 ForAllChildren(pw, childP) {
1264 if (!IsPane(*childP) || !XtIsManaged(*childP)) {
1269 unmanagedP = childP;
1278 *unmanagedP = *childP;
1279 *childP = child;
1280 childP = unmanagedP; /* easiest to just back-track */
1302 Widget *managedP, *unmanagedP, *childP;
1309 ForAllChildren(pw, childP)
1310 if (IsPane(*childP) && HasGrip(*childP)) {
1311 if (XtIsManaged(*childP))
1312 *managedP++ = PaneInfo(*childP)->grip;
1314 *unmanagedP++ = PaneInfo(*childP)->grip;
1417 Widget *childP;
1421 ForAllPanes(pw, childP)
1422 if (pw->paned.resize_children_to_pref || PaneInfo(*childP)->size == 0 ||
1423 PaneInfo(*childP)->resize_to_pref) {
1424 if (PaneInfo(*childP)->preferred_size != PANED_ASK_CHILD)
1425 PaneInfo(*childP)->wp_size = PaneInfo(*childP)->preferred_size;
1436 if ((XtQueryGeometry(*childP, &request, &reply)
1439 PaneInfo(*childP)->wp_size = GetRequestInfo(&reply, vert);
1441 PaneInfo(*childP)->wp_size = PaneSize(*childP, vert);
1444 PaneInfo(*childP)->size = PaneInfo(*childP)->wp_size;
1461 Widget *childP;
1463 ForAllPanes(pw, childP) {
1473 if (HasGrip(*childP)) {
1477 XtSetValues(PaneInfo(*childP)->grip, arglist, 1);
1723 Widget *childP;
1734 ForAllPanes(pw, childP) {
1735 XtRealizeWidget(*childP);
1736 if (HasGrip(*childP))
1737 XtRealizeWidget(PaneInfo(*childP)->grip);
1807 Widget *childP;
1818 ForAllChildren(pw, childP)
1819 if (XtIsManaged(*childP) && (PaneSize(*childP, !vert) > size))
1820 size = PaneSize(*childP, !vert);
1828 ForAllChildren(pw, childP)
1829 if (IsPane(*childP)) {
1830 if (XtIsManaged(*childP)) {
1831 Pane pane = PaneInfo(*childP);
1833 if (HasGrip(*childP))