Lines Matching refs:bbox

25     double bbox[4];		/* Coordinates of bounding box for rectangle
203 &rectOvalPtr->bbox[0]) != TCL_OK)
205 &rectOvalPtr->bbox[1]) != TCL_OK)
207 &rectOvalPtr->bbox[2]) != TCL_OK)
209 &rectOvalPtr->bbox[3]) != TCL_OK)) {
256 Tcl_PrintDouble(interp, rectOvalPtr->bbox[0], c0);
257 Tcl_PrintDouble(interp, rectOvalPtr->bbox[1], c1);
258 Tcl_PrintDouble(interp, rectOvalPtr->bbox[2], c2);
259 Tcl_PrintDouble(interp, rectOvalPtr->bbox[3], c3);
264 &rectOvalPtr->bbox[0]) != TCL_OK)
266 &rectOvalPtr->bbox[1]) != TCL_OK)
268 &rectOvalPtr->bbox[2]) != TCL_OK)
270 &rectOvalPtr->bbox[3]) != TCL_OK)) {
437 RectOvalItem *rectOvalPtr; /* Item whose bbox is to be
447 if (rectOvalPtr->bbox[1] > rectOvalPtr->bbox[3]) {
449 tmp = rectOvalPtr->bbox[3];
450 rectOvalPtr->bbox[3] = rectOvalPtr->bbox[1];
451 rectOvalPtr->bbox[1] = tmp;
453 if (rectOvalPtr->bbox[0] > rectOvalPtr->bbox[2]) {
455 tmp = rectOvalPtr->bbox[2];
456 rectOvalPtr->bbox[2] = rectOvalPtr->bbox[0];
457 rectOvalPtr->bbox[0] = tmp;
472 tmp = (rectOvalPtr->bbox[0] >= 0) ? rectOvalPtr->bbox[0] + .5
473 : rectOvalPtr->bbox[0] - .5;
475 tmp = (rectOvalPtr->bbox[1] >= 0) ? rectOvalPtr->bbox[1] + .5
476 : rectOvalPtr->bbox[1] - .5;
478 dtmp = rectOvalPtr->bbox[2];
479 if (dtmp < (rectOvalPtr->bbox[0] + 1)) {
480 dtmp = rectOvalPtr->bbox[0] + 1;
484 dtmp = rectOvalPtr->bbox[3];
485 if (dtmp < (rectOvalPtr->bbox[1] + 1)) {
486 dtmp = rectOvalPtr->bbox[1] + 1;
526 * Make sure that the bbox is at least one pixel large, since some
530 Tk_CanvasDrawableCoords(canvas, rectOvalPtr->bbox[0], rectOvalPtr->bbox[1],
532 Tk_CanvasDrawableCoords(canvas, rectOvalPtr->bbox[2], rectOvalPtr->bbox[3],
614 x1 = rectPtr->bbox[0];
615 y1 = rectPtr->bbox[1];
616 x2 = rectPtr->bbox[2];
617 y2 = rectPtr->bbox[3];
722 return TkOvalToPoint(ovalPtr->bbox, width, filled, pointPtr);
763 if ((areaPtr[2] <= (rectPtr->bbox[0] - halfWidth))
764 || (areaPtr[0] >= (rectPtr->bbox[2] + halfWidth))
765 || (areaPtr[3] <= (rectPtr->bbox[1] - halfWidth))
766 || (areaPtr[1] >= (rectPtr->bbox[3] + halfWidth))) {
770 && (areaPtr[0] >= (rectPtr->bbox[0] + halfWidth))
771 && (areaPtr[1] >= (rectPtr->bbox[1] + halfWidth))
772 && (areaPtr[2] <= (rectPtr->bbox[2] - halfWidth))
773 && (areaPtr[3] <= (rectPtr->bbox[3] - halfWidth))) {
776 if ((areaPtr[0] <= (rectPtr->bbox[0] - halfWidth))
777 && (areaPtr[1] <= (rectPtr->bbox[1] - halfWidth))
778 && (areaPtr[2] >= (rectPtr->bbox[2] + halfWidth))
779 && (areaPtr[3] >= (rectPtr->bbox[3] + halfWidth))) {
827 oval[0] = ovalPtr->bbox[0] - halfWidth;
828 oval[1] = ovalPtr->bbox[1] - halfWidth;
829 oval[2] = ovalPtr->bbox[2] + halfWidth;
830 oval[3] = ovalPtr->bbox[3] + halfWidth;
846 centerX = (ovalPtr->bbox[0] + ovalPtr->bbox[2])/2.0;
847 centerY = (ovalPtr->bbox[1] + ovalPtr->bbox[3])/2.0;
848 width = (ovalPtr->bbox[2] - ovalPtr->bbox[0])/2.0 - halfWidth;
849 height = (ovalPtr->bbox[3] - ovalPtr->bbox[1])/2.0 - halfWidth;
900 rectOvalPtr->bbox[0] = originX + scaleX*(rectOvalPtr->bbox[0] - originX);
901 rectOvalPtr->bbox[1] = originY + scaleY*(rectOvalPtr->bbox[1] - originY);
902 rectOvalPtr->bbox[2] = originX + scaleX*(rectOvalPtr->bbox[2] - originX);
903 rectOvalPtr->bbox[3] = originY + scaleY*(rectOvalPtr->bbox[3] - originY);
936 rectOvalPtr->bbox[0] += deltaX;
937 rectOvalPtr->bbox[1] += deltaY;
938 rectOvalPtr->bbox[2] += deltaX;
939 rectOvalPtr->bbox[3] += deltaY;
979 y1 = Tk_CanvasPsY(canvas, rectOvalPtr->bbox[1]);
980 y2 = Tk_CanvasPsY(canvas, rectOvalPtr->bbox[3]);
991 rectOvalPtr->bbox[0], y1,
992 rectOvalPtr->bbox[2]-rectOvalPtr->bbox[0], y2-y1,
993 rectOvalPtr->bbox[0]-rectOvalPtr->bbox[2]);
996 (rectOvalPtr->bbox[0] + rectOvalPtr->bbox[2])/2, (y1 + y2)/2,
997 (rectOvalPtr->bbox[2] - rectOvalPtr->bbox[0])/2, (y1 - y2)/2);