Lines Matching defs:child

219     w->viewport.child = (Widget) NULL;
288 Widget child = w->viewport.child;
297 if (child != (Widget)NULL) {
298 XtMoveWidget( child, (Position)0, (Position)0 );
300 XtRealizeWidget( child );
301 XReparentWindow( XtDisplay(w), XtWindow(child), XtWindow(clip),
303 XtMapWidget( child );
334 Widget child, *childP;
337 child = (Widget)NULL;
344 child = *childP;
349 if (child != w->viewport.child) {
350 w->viewport.child = child;
351 if (child != (Widget)NULL) {
352 XtResizeWidget( child, child->core.width,
353 child->core.height, (Dimension)0 );
356 (ViewportConstraints)child->core.constraints;
357 if (!XtIsRealized(child)) {
359 XtMoveWidget( child, (Position)0, (Position)0 );
362 XtRealizeWidget( child );
363 XReparentWindow( XtDisplay(w), XtWindow(child),
366 if (child->core.mapped_when_managed)
367 XtMapWidget( child );
370 XtRealizeWidget( child );
376 XReparentWindow( XtDisplay(w), XtWindow(child),
380 if (child->core.mapped_when_managed)
381 XtMapWidget( child );
384 GetGeometry( widget, child->core.width, child->core.height );
387 /* %%% do we need to hide this child from Form? */
409 Widget child = w->viewport.child;
413 SetBar( w->viewport.horiz_bar, -(child->core.x),
414 clip->core.width, child->core.width );
417 SetBar( w->viewport.vert_bar, -(child->core.y),
418 clip->core.height, child->core.height );
430 Widget child = w->viewport.child;
434 rep.slider_x = -child->core.x; /* child is canvas */
435 rep.slider_y = -child->core.y; /* clip is slider */
438 rep.canvas_width = child->core.width;
439 rep.canvas_height = child->core.height;
450 Widget child = w->viewport.child;
454 if (-x + (int)clip->core.width > (int)child->core.width)
455 x = -(child->core.width - clip->core.width);
457 if (-y + (int)clip->core.height > (int)child->core.height)
458 y = -(child->core.height - clip->core.height);
464 XtMoveWidget(child, x, y);
473 Boolean query; /* query child's preferred geom? */
477 Widget child = w->viewport.child;
485 if (child == (Widget) NULL) return;
506 * intended.{width,height} caches the eventual child dimensions,
508 * child's preferences are not acceptable.
514 if ((int)child->core.width < clip_width)
517 intended.width = child->core.width;
519 if ((int)child->core.height < clip_height)
522 intended.height = child->core.height;
528 preferred.width = child->core.width;
529 preferred.height = child->core.height;
534 (void) XtQueryGeometry( child, &intended, &preferred );
652 if (child != (Widget)NULL) {
653 XtResizeWidget( child, (Dimension)intended.width,
656 needshoriz ? child->core.x : 0,
657 needsvert ? child->core.y : 0);
666 * query - whether or not to query the child.
682 Widget child = w->viewport.child;
720 XtQueryGeometry( child, intended, &preferred );
726 intended->width = child->core.width;
732 intended->height = child->core.height;
737 intended->height = child->core.height;
739 intended->width = child->core.width;
773 Widget child = w->viewport.child;
777 if (child == NULL) return; /* no child to scroll. */
779 x = child->core.x - ((widget == w->viewport.horiz_bar) ? pix : 0);
780 y = child->core.y - ((widget == w->viewport.vert_bar) ? pix : 0);
792 Widget child = w->viewport.child;
796 if (child == NULL) return; /* no child to scroll. */
800 x = (int)(-*percent * child->core.width);
802 x = -(int)(*percent * child->core.width);
805 x = child->core.x;
809 y = (int)(-*percent * child->core.height);
811 y = -(int)(*percent * child->core.height);
814 y = child->core.y;
883 static XtGeometryResult GeometryManager(child, request, reply)
884 Widget child;
887 ViewportWidget w = (ViewportWidget)child->core.parent;
899 if (child != w->viewport.child
913 child_changed_size = ((rWidth && child->core.width != request->width) ||
914 (rHeight && child->core.height != request->height));
959 if (rWidth) child->core.width = request->width;
960 if (rHeight) child->core.height = request->height;
1012 if (((ViewportWidget)w)->viewport.child != NULL)
1013 return XtQueryGeometry( ((ViewportWidget)w)->viewport.child,
1035 Widget child = w->viewport.child;
1039 x = child->core.width;
1041 x = child->core.x;
1043 x = (Position) (((float) child->core.width) * xoff);
1046 y = child->core.height;
1048 y = child->core.y;
1050 y = (Position) (((float) child->core.height) * yoff);
1070 Widget child = w->viewport.child;
1072 if (x > (int)child->core.width)
1073 x = child->core.width;
1075 x = child->core.x;
1077 if (y > (int)child->core.height)
1078 y = child->core.height;
1080 y = child->core.y;