Lines Matching refs:childP

67 #define ForAllPanes(pw, childP) \
68 for ( (childP) = (pw)->composite.children ; \
69 (childP) < (pw)->composite.children + (pw)->paned.num_panes ; \
70 (childP)++ )
72 #define ForAllChildren(pw, childP) \
73 for ( (childP) = (pw)->composite.children ; \
74 (childP) < (pw)->composite.children + (pw)->composite.num_children ; \
75 (childP)++ )
269 Widget * childP;
273 ForAllPanes(pw, childP) {
274 int size = (int) Max(PaneInfo(*childP)->size, PaneInfo(*childP)->min);
275 AssignMin(size, (int) PaneInfo(*childP)->max);
385 Widget *childP;
395 childP = pw->composite.children + _index;
397 register Pane pane = PaneInfo(*childP);
402 ((index != PaneIndex(*childP)) || (dir == AnyPane)) )
411 if (_dir == LowRightPane) --childP; else ++childP;
418 if ( (childP - pw->composite.children < 0) ||
419 (childP - pw->composite.children >= pw->paned.num_panes) ) {
422 childP = pw->composite.children + _index;
572 register Widget *childP;
583 ForAllPanes(pw, childP) {
584 register Pane pane = PaneInfo(*childP);
617 ForAllPanes(pw, childP) {
618 PaneInfo(*childP)->delta = loc;
619 loc += PaneInfo(*childP)->size + pw->paned.internal_bw;
633 register Widget *childP;
638 ForAllPanes(pw, childP) {
639 register Pane pane = PaneInfo(*childP);
643 XtMoveWidget(*childP, (Position) 0, pane->delta);
644 XtResizeWidget(*childP, pw->core.width, (Dimension) pane->size,
647 if (HasGrip(*childP)) { /* Move and Display the Grip */
650 changes.y = (*childP)->core.y + (*childP)->core.height -
656 XtMoveWidget(*childP, pane->delta, (Position) 0);
657 XtResizeWidget(*childP, (Dimension) pane->size, pw->core.height,
661 if (HasGrip(*childP)) { /* Move and Display the Grip */
662 changes.x = (*childP)->core.x + (*childP)->core.width -
675 if (HasGrip(*childP)) {
749 Widget *childP;
765 ForAllPanes(pw, childP) {
766 on_loc = IsVert(pw) ? (*childP)->core.y : (*childP)->core.x;
794 Widget *childP;
802 ForAllPanes(pw, childP) {
803 pane = PaneInfo(*childP);
807 on_loc = PaneInfo(*childP)->olddelta - (int) on_size;
813 on_loc = PaneInfo(*childP)->delta - (int) on_size;
882 Widget *childP;
926 ForAllPanes(pw, childP)
927 PaneInfo(*childP)->olddelta = -99;
1085 Widget * unmanagedP, * childP;
1088 ForAllChildren(pw, childP) {
1089 if (!IsPane(*childP) || !XtIsManaged(*childP)) {
1094 unmanagedP = childP;
1102 *unmanagedP = *childP;
1103 *childP = child;
1104 childP = unmanagedP; /* easiest to just back-track */
1123 Widget *managedP, *unmanagedP, *childP;
1130 ForAllChildren(pw, childP)
1131 if (IsPane(*childP) && HasGrip(*childP))
1132 if ( XtIsManaged(*childP) )
1133 *managedP++ = PaneInfo(*childP)->grip;
1135 *unmanagedP++ = PaneInfo(*childP)->grip;
1234 Widget * childP;
1238 ForAllPanes(pw, childP)
1240 (PaneInfo(*childP)->size == 0) ||
1241 (PaneInfo(*childP)->resize_to_pref) ) {
1243 if (PaneInfo(*childP)->preferred_size != PANED_ASK_CHILD)
1244 PaneInfo(*childP)->wp_size=PaneInfo(*childP)->preferred_size;
1255 if ((XtQueryGeometry( *childP, &request, &reply )
1258 PaneInfo(*childP)->wp_size = GetRequestInfo(&reply, vert);
1260 PaneInfo(*childP)->wp_size = PaneSize(*childP, vert);
1263 PaneInfo(*childP)->size = PaneInfo(*childP)->wp_size;
1277 Widget * childP;
1279 ForAllPanes(pw, childP) {
1289 if (HasGrip (*childP)) {
1291 XtSetValues(PaneInfo(*childP)->grip, arglist, (Cardinal) 1);
1541 Widget * childP;
1553 ForAllPanes(pw, childP) {
1554 XtRealizeWidget( *childP );
1555 if (HasGrip (*childP))
1556 XtRealizeWidget( PaneInfo(*childP)->grip );
1621 register Widget *childP;
1631 ForAllChildren(pw, childP)
1632 if ( XtIsManaged(*childP) && (PaneSize( *childP, !vert ) > size) )
1633 size = PaneSize( *childP, !vert );
1641 ForAllChildren(pw, childP)
1642 if ( IsPane(*childP) )
1643 if ( XtIsManaged(*childP) ) {
1644 Pane pane = PaneInfo(*childP);
1645 if (HasGrip(*childP))