Lines Matching defs:child
192 w->viewport.child = (Widget) NULL;
255 register Widget child = w->viewport.child;
264 if (child != (Widget)NULL) {
265 XtMoveWidget( child, (Position)0, (Position)0 );
267 XtRealizeWidget( child );
268 XReparentWindow( XtDisplay(w), XtWindow(child), XtWindow(clip),
270 XtMapWidget( child );
301 register Widget child, *childP;
304 child = (Widget)NULL;
311 child = *childP;
316 if (child != w->viewport.child) {
317 w->viewport.child = child;
318 if (child != (Widget)NULL) {
319 XtResizeWidget( child, child->core.width,
320 child->core.height, (Dimension)0 );
323 (ViewportConstraints)child->core.constraints;
324 if (!XtIsRealized(child)) {
326 XtMoveWidget( child, (Position)0, (Position)0 );
329 XtRealizeWidget( child );
330 XReparentWindow( XtDisplay(w), XtWindow(child),
333 if (child->core.mapped_when_managed)
334 XtMapWidget( child );
337 XtRealizeWidget( child );
343 XReparentWindow( XtDisplay(w), XtWindow(child),
347 if (child->core.mapped_when_managed)
348 XtMapWidget( child );
351 GetGeometry( widget, child->core.width, child->core.height );
354 /* %%% do we need to hide this child from Form? */
375 register Widget child = w->viewport.child;
379 SetBar( w->viewport.horiz_bar, -(child->core.x),
380 clip->core.width, child->core.width );
383 SetBar( w->viewport.vert_bar, -(child->core.y),
384 clip->core.height, child->core.height );
393 register Widget child = w->viewport.child;
397 if (-x + clip->core.width > child->core.width)
398 x = -(child->core.width - clip->core.width);
400 if (-y + clip->core.height > child->core.height)
401 y = -(child->core.height - clip->core.height);
407 XtMoveWidget(child, x, y);
415 Boolean query; /* query child's preferred geom? */
419 register Widget child = w->viewport.child;
428 if (child == (Widget) NULL) return;
449 * intended.{width,height} caches the eventual child dimensions,
451 * child's preferences are not acceptable.
457 if (child->core.width < clip_width)
460 intended.width = child->core.width;
462 if (child->core.height < clip_height)
465 intended.height = child->core.height;
471 preferred.width = child->core.width;
472 preferred.height = child->core.height;
477 (void) XtQueryGeometry( child, &intended, &preferred );
592 if (child != (Widget)NULL) {
593 XtResizeWidget( child, (Dimension)intended.width,
596 needshoriz ? child->core.x : 0,
597 needsvert ? child->core.y : 0);
604 * query - whether or not to query the child.
620 register Widget child = w->viewport.child;
650 XtQueryGeometry( child, intended, &preferred );
656 intended->width = child->core.width;
662 intended->height = child->core.height;
667 intended->height = child->core.height;
669 intended->width = child->core.width;
701 register Widget child = w->viewport.child;
705 if (child == NULL) return; /* no child to scroll. */
707 x = child->core.x - ((widget == w->viewport.horiz_bar) ? pix : 0);
708 y = child->core.y - ((widget == w->viewport.vert_bar) ? pix : 0);
720 register Widget child = w->viewport.child;
723 if (child == NULL) return; /* no child to scroll. */
727 x = (int)(-*percent * child->core.width);
729 x = -(int)(*percent * child->core.width);
732 x = child->core.x;
736 y = (int)(-*percent * child->core.height);
738 y = -(int)(*percent * child->core.height);
741 y = child->core.y;
747 static XtGeometryResult GeometryManager(child, request, reply)
748 Widget child;
751 ViewportWidget w = (ViewportWidget)child->core.parent;
759 if (child != w->viewport.child
815 if (rWidth) child->core.width = request->width;
816 if (rHeight) child->core.height = request->height;
867 if (((ViewportWidget)w)->viewport.child != NULL)
868 return XtQueryGeometry( ((ViewportWidget)w)->viewport.child,