Lines Matching refs:core

155 	(ViewportConstraints)clip->core.constraints;
170 horizontal ? clip->core.width : clip->core.height);
233 XtSetArg(clip_args[arg_cnt], XtNwidth, w->core.width); arg_cnt++;
234 XtSetArg(clip_args[arg_cnt], XtNheight, w->core.height); arg_cnt++;
254 clip_width = w->core.width;
255 clip_height = w->core.height;
258 ((int)w->core.width >
259 (int)(h_bar->core.width + h_bar->core.border_width)) )
260 clip_width -= h_bar->core.width + h_bar->core.border_width;
263 ((int)w->core.height >
264 (int)(v_bar->core.height + v_bar->core.border_width)) )
265 clip_height -= v_bar->core.height + v_bar->core.border_width;
279 ((ViewportConstraints)new->core.constraints)->viewport.reparented = False;
295 (*w->core.widget_class->core_class.resize)(widget); /* turn on bars */
322 (*w->core.widget_class->core_class.resize)(new); /* Recompute layout.*/
352 XtResizeWidget( child, child->core.width,
353 child->core.height, (Dimension)0 );
356 (ViewportConstraints)child->core.constraints;
366 if (child->core.mapped_when_managed)
369 w->core.window = XtWindow(w->viewport.clip);
371 w->core.window = window;
380 if (child->core.mapped_when_managed)
384 GetGeometry( widget, child->core.width, child->core.height );
385 (*((ViewportWidgetClass)w->core.widget_class)->form_class.layout)
386 ( (FormWidget)w, w->core.width, w->core.height, True );
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 );
434 rep.slider_x = -child->core.x; /* child is canvas */
435 rep.slider_y = -child->core.y; /* clip is slider */
436 rep.slider_width = clip->core.width;
437 rep.slider_height = clip->core.height;
438 rep.canvas_width = child->core.width;
439 rep.canvas_height = child->core.height;
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);
480 = (ViewportConstraints)clip->core.constraints;
487 clip_width = w->core.width;
488 clip_height = w->core.height;
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;
556 clip_height -= bar->core.height + \
557 bar->core.border_width; \
570 clip_width -= bar->core.width + bar->core.border_width;
598 w->viewport.vert_bar->core.width +
599 w->viewport.vert_bar->core.border_width) : 0),
601 w->viewport.horiz_bar->core.height +
602 w->viewport.horiz_bar->core.border_width) : 0));
616 int bw = bar->core.border_width;
617 XtResizeWidget( bar, (Dimension) clip_width, bar->core.height, (Dimension) bw );
620 ? w->viewport.vert_bar->core.width
623 ? w->core.height - bar->core.height - bw
639 int bw = bar->core.border_width;
640 XtResizeWidget( bar, bar->core.width, (Dimension)clip_height, (Dimension)bw );
643 ? w->core.width - bar->core.width - bw
646 ? w->viewport.horiz_bar->core.height
656 needshoriz ? child->core.x : 0,
657 needsvert ? child->core.y : 0);
694 *clip_width -= w->viewport.vert_bar->core.width +
695 w->viewport.vert_bar->core.border_width;
702 *clip_height -= w->viewport.horiz_bar->core.height +
703 w->viewport.horiz_bar->core.border_width;
726 intended->width = child->core.width;
732 intended->height = child->core.height;
737 intended->height = child->core.height;
739 intended->width = child->core.width;
761 w->form.preferred_width = w->core.width;
762 w->form.preferred_height = w->core.height;
779 x = child->core.x - ((widget == w->viewport.horiz_bar) ? pix : 0);
780 y = child->core.y - ((widget == w->viewport.vert_bar) ? pix : 0);
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;
823 if (request->width < w->core.width || request->height < w->core.height)
840 request->width += sb->core.width;
841 request->height += sb->core.height;
846 #define WidthChange() (request->width != w->core.width)
847 #define HeightChange() (request->height != w->core.height)
887 ViewportWidget w = (ViewportWidget)child->core.parent;
909 (rWidth ? request->width : w->core.width),
910 (rHeight ? request->height : w->core.height)
913 child_changed_size = ((rWidth && child->core.width != request->width) ||
914 (rHeight && child->core.height != request->height));
916 height_remaining = w->core.height;
917 if (rWidth && w->core.width != request->width) {
918 if (w->viewport.allowhoriz && request->width > w->core.width) {
923 height_remaining -= bar->core.height + bar->core.border_width;
927 allowed.width = w->core.width;
933 if (!w->viewport.allowhoriz || request->width < w->core.width) {
938 allowed.width = w->core.width;
942 (int)(bar->core.width + bar->core.border_width) )
943 allowed.width -= bar->core.width + bar->core.border_width;
959 if (rWidth) child->core.width = request->width;
960 if (rHeight) child->core.height = request->height;
980 if (width == w->core.width && height == w->core.height)
988 if (((ViewportWidget)w)->viewport.allowhoriz && width > w->core.width)
989 geometry.width = w->core.width;
990 if (((ViewportWidget)w)->viewport.allowvert && height > w->core.height)
991 geometry.height = w->core.height;
994 if (w->core.width != 0) {
995 if (w->core.height != 0) return False;
996 geometry.width = w->core.width;
998 if (w->core.height != 0) geometry.height = w->core.height;
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);
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;