Lines Matching refs:child

300     w->viewport.child = NULL;
361 Widget child = w->viewport.child;
370 if (child != NULL) {
371 XtMoveWidget(child, 0, 0);
373 XtRealizeWidget(child);
374 XReparentWindow(XtDisplay(w), XtWindow(child), XtWindow(clip), 0, 0);
375 XtMapWidget(child);
402 Widget child, *childP;
405 child = NULL;
413 child = *childP;
418 if (child != w->viewport.child) {
419 w->viewport.child = child;
420 if (child != NULL) {
421 XtResizeWidget(child, XtWidth(child), XtHeight(child), 0);
424 (ViewportConstraints)child->core.constraints;
425 if (!XtIsRealized(child)) {
428 XtMoveWidget(child, 0, 0);
430 XtRealizeWidget(child);
435 XReparentWindow(XtDisplay(w), XtWindow(child),
438 if (child->core.mapped_when_managed)
439 XtMapWidget(child);
442 GetGeometry(widget, XtWidth(child), XtHeight(child));
459 Widget child = w->viewport.child;
463 SetBar(w->viewport.horiz_bar, -(int)XtX(child),
464 XtWidth(clip), XtWidth(child));
467 SetBar(w->viewport.vert_bar, -(int)XtY(child),
468 XtHeight(clip), XtHeight(child));
475 Widget child = w->viewport.child;
479 .slider_x = (Position) -XtX(child), /* child is canvas */
480 .slider_y = (Position) -XtY(child), /* clip is slider */
483 .canvas_width = XtWidth(child),
484 .canvas_height = XtHeight(child)
494 Widget child = w->viewport.child;
498 if (-x + (int)XtWidth(clip) > XtWidth(child))
499 x = -(int)(XtWidth(child) - XtWidth(clip));
501 if (-y + (int)XtHeight(clip) > XtHeight(child))
502 y = -(int)(XtHeight(child) - XtHeight(clip));
510 XtMoveWidget(child, (Position) x, (Position) y);
520 Widget child = w->viewport.child;
528 if (child == NULL)
550 * intended.{width,height} caches the eventual child dimensions,
552 * child's preferences are not acceptable
557 if (XtWidth(child) < clip_width)
560 intended.width = XtWidth(child);
562 if (XtHeight(child) < clip_height)
565 intended.height = XtHeight(child);
571 preferred.width = XtWidth(child);
572 preferred.height = XtHeight(child);
576 (void)XtQueryGeometry(child, &intended, &preferred);
693 if (child != NULL) {
694 XtResizeWidget(child, intended.width, intended.height, 0);
695 MoveChild(w, needshoriz ? XtX(child) : 0, needsvert ? XtY(child) : 0);
707 * query - whether or not to query the child
708 * intended - cache of the child's height is stored here
721 Widget child = w->viewport.child;
758 XtQueryGeometry(child, intended, &preferred);
764 intended->width = XtWidth(child);
771 intended->height = XtHeight(child);
777 intended->height = XtHeight(child);
779 intended->width = XtWidth(child);
809 Widget child = w->viewport.child;
813 if (child == NULL)
816 x = XtX(child) - (widget == w->viewport.horiz_bar ? pix : 0);
817 y = XtY(child) - (widget == w->viewport.vert_bar ? pix : 0);
826 Widget child = w->viewport.child;
830 if (child == NULL)
834 x = (int)(-percent * XtWidth(child));
836 x = XtX(child);
839 y = (int)(-percent * XtHeight(child));
841 y = XtY(child);
909 XawViewportGeometryManager(Widget child, XtWidgetGeometry *request,
912 ViewportWidget w = (ViewportWidget)child->core.parent;
924 if (child != w->viewport.child
936 child_changed_size = (rWidth && XtWidth(child) != request->width) ||
937 (rHeight && XtHeight(child) != request->height);
982 XtWidth(child) = request->width;
984 XtHeight(child) = request->height;
1035 if (((ViewportWidget)w)->viewport.child != NULL)
1036 return (XtQueryGeometry(((ViewportWidget)w)->viewport.child,
1054 Widget child = w->viewport.child;
1058 x = XtWidth(child);
1060 x = XtX(child);
1062 x = (int)((float)XtWidth(child) * xoff);
1065 y = XtHeight(child);
1067 y = XtY(child);
1069 y = (int)((float)XtHeight(child) * yoff);
1084 Widget child = w->viewport.child;
1086 if (x > XtWidth(child))
1087 x = (Position)XtWidth(child);
1089 x = (Position)XtX(child);
1091 if (y > XtHeight(child))
1092 y = (Position)XtHeight(child);
1094 y = (Position)XtY(child);