Lines Matching defs:childP
91 #define ForAllPanes(pw, childP) \
92 for ( (childP) = (pw)->composite.children ; \
93 (childP) < (pw)->composite.children + (pw)->paned.num_panes ; \
94 (childP)++ )
96 #define ForAllChildren(pw, childP) \
97 for ( (childP) = (pw)->composite.children ; \
98 (childP) < (pw)->composite.children + (pw)->composite.num_children ; \
99 (childP)++ )
293 Widget * childP;
297 ForAllPanes(pw, childP) {
298 int size = Max(PaneInfo(*childP)->size, (int)PaneInfo(*childP)->min);
299 AssignMin(size, (int) PaneInfo(*childP)->max);
410 Widget *childP;
420 childP = pw->composite.children + _index;
424 Pane pane = PaneInfo(*childP);
429 ((paneindex != PaneIndex(*childP)) || (dir == AnyPane)) )
438 if (_dir == LowRightPane) --childP; else ++childP;
445 if ( (childP - pw->composite.children < 0) ||
446 (childP - pw->composite.children >= (long)pw->paned.num_panes) ) {
449 childP = pw->composite.children + _index;
599 Widget *childP;
610 ForAllPanes(pw, childP) {
611 Pane pane = PaneInfo(*childP);
644 ForAllPanes(pw, childP) {
645 PaneInfo(*childP)->delta = loc;
646 loc += PaneInfo(*childP)->size + pw->paned.internal_bw;
660 Widget *childP;
665 ForAllPanes(pw, childP) {
666 Pane pane = PaneInfo(*childP);
670 XtMoveWidget(*childP, (Position) 0, pane->delta);
671 XtResizeWidget(*childP, pw->core.width, (Dimension) pane->size,
674 if (HasGrip(*childP)) { /* Move and Display the Grip */
677 changes.y = (*childP)->core.y + (*childP)->core.height -
683 XtMoveWidget(*childP, pane->delta, (Position) 0);
684 XtResizeWidget(*childP, (Dimension) pane->size, pw->core.height,
688 if (HasGrip(*childP)) { /* Move and Display the Grip */
689 changes.x = (*childP)->core.x + (*childP)->core.width -
702 if (HasGrip(*childP)) {
776 Widget *childP;
792 ForAllPanes(pw, childP) {
793 on_loc = IsVert(pw) ? (*childP)->core.y : (*childP)->core.x;
821 Widget *childP;
829 ForAllPanes(pw, childP) {
830 pane = PaneInfo(*childP);
834 on_loc = PaneInfo(*childP)->olddelta - (int) on_size;
840 on_loc = PaneInfo(*childP)->delta - (int) on_size;
909 Widget *childP;
953 ForAllPanes(pw, childP)
954 PaneInfo(*childP)->olddelta = -99;
1113 Widget * unmanagedP, * childP;
1116 ForAllChildren(pw, childP) {
1117 if (!IsPane(*childP) || !XtIsManaged(*childP)) {
1122 unmanagedP = childP;
1130 *unmanagedP = *childP;
1131 *childP = child;
1132 childP = unmanagedP; /* easiest to just back-track */
1151 Widget *managedP, *unmanagedP, *childP;
1158 ForAllChildren(pw, childP)
1159 if (IsPane(*childP) && HasGrip(*childP))
1160 if ( XtIsManaged(*childP) )
1161 *managedP++ = PaneInfo(*childP)->grip;
1163 *unmanagedP++ = PaneInfo(*childP)->grip;
1262 Widget * childP;
1266 ForAllPanes(pw, childP)
1268 (PaneInfo(*childP)->size == 0) ||
1269 (PaneInfo(*childP)->resize_to_pref) ) {
1271 if (PaneInfo(*childP)->preferred_size != PANED_ASK_CHILD)
1272 PaneInfo(*childP)->wp_size=PaneInfo(*childP)->preferred_size;
1283 if ((XtQueryGeometry( *childP, &request, &reply )
1286 PaneInfo(*childP)->wp_size = GetRequestInfo(&reply, vert);
1288 PaneInfo(*childP)->wp_size = PaneSize(*childP, vert);
1291 PaneInfo(*childP)->size = PaneInfo(*childP)->wp_size;
1305 Widget * childP;
1307 ForAllPanes(pw, childP) {
1317 if (HasGrip (*childP)) {
1319 XtSetValues(PaneInfo(*childP)->grip, arglist, (Cardinal) 1);
1573 Widget * childP;
1585 ForAllPanes(pw, childP) {
1586 XtRealizeWidget( *childP );
1587 if (HasGrip (*childP))
1588 XtRealizeWidget( PaneInfo(*childP)->grip );
1654 Widget *childP;
1664 ForAllChildren(pw, childP)
1665 if ( XtIsManaged(*childP) && (PaneSize( *childP, !vert ) > size) )
1666 size = PaneSize( *childP, !vert );
1674 ForAllChildren(pw, childP)
1675 if ( IsPane(*childP) )
1676 if ( XtIsManaged(*childP) ) {
1677 Pane pane = PaneInfo(*childP);
1678 if (HasGrip(*childP))