Lines Matching refs:fRect

28     if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) {  in setRectXY()
30 SkScalar scale = SkMinScalar(sk_ieee_float_divide(fRect. width(), xRad + xRad), in setRectXY()
31 sk_ieee_float_divide(fRect.height(), yRad + yRad)); in setRectXY()
47 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
73 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
74 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
76 if (topRad + bottomRad > fRect.height()) { in setNinePatch()
77 scale = SkMinScalar(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch()
88 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
169 fRect = rect.makeSorted(); in initializeRect()
170 if (fRect.isEmpty()) { in initializeRect()
205 double width = (double)fRect.fRight - (double)fRect.fLeft; in scaleRadii()
206 double height = (double)fRect.fBottom - (double)fRect.fTop; in scaleRadii()
243 canonicalPt.set(x - fRect.centerX(), y - fRect.centerY()); in checkCornerContainment()
246 if (x < fRect.fLeft + fRadii[kUpperLeft_Corner].fX && in checkCornerContainment()
247 y < fRect.fTop + fRadii[kUpperLeft_Corner].fY) { in checkCornerContainment()
250 canonicalPt.set(x - (fRect.fLeft + fRadii[kUpperLeft_Corner].fX), in checkCornerContainment()
251 y - (fRect.fTop + fRadii[kUpperLeft_Corner].fY)); in checkCornerContainment()
253 } else if (x < fRect.fLeft + fRadii[kLowerLeft_Corner].fX && in checkCornerContainment()
254 y > fRect.fBottom - fRadii[kLowerLeft_Corner].fY) { in checkCornerContainment()
257 canonicalPt.set(x - (fRect.fLeft + fRadii[kLowerLeft_Corner].fX), in checkCornerContainment()
258 y - (fRect.fBottom - fRadii[kLowerLeft_Corner].fY)); in checkCornerContainment()
260 } else if (x > fRect.fRight - fRadii[kUpperRight_Corner].fX && in checkCornerContainment()
261 y < fRect.fTop + fRadii[kUpperRight_Corner].fY) { in checkCornerContainment()
264 canonicalPt.set(x - (fRect.fRight - fRadii[kUpperRight_Corner].fX), in checkCornerContainment()
265 y - (fRect.fTop + fRadii[kUpperRight_Corner].fY)); in checkCornerContainment()
267 } else if (x > fRect.fRight - fRadii[kLowerRight_Corner].fX && in checkCornerContainment()
268 y > fRect.fBottom - fRadii[kLowerRight_Corner].fY) { in checkCornerContainment()
271 canonicalPt.set(x - (fRect.fRight - fRadii[kLowerRight_Corner].fX), in checkCornerContainment()
272 y - (fRect.fBottom - fRadii[kLowerRight_Corner].fY)); in checkCornerContainment()
328 if (fRect.isEmpty()) { in computeType()
329 SkASSERT(fRect.isSorted()); in computeType()
359 if (fRadii[0].fX >= SkScalarHalf(fRect.width()) && in computeType()
360 fRadii[0].fY >= SkScalarHalf(fRect.height())) { in computeType()
399 if (!matrix.mapRect(&newRect, fRect)) { in transform()
412 dst->fRect = newRect; in transform()
467 if (!AreRectAndRadiiValid(dst->fRect, dst->fRadii)) { in transform()
471 dst->scaleRadii(dst->fRect); in transform()
480 SkRect r = fRect.makeInset(dx, dy); in inset()
491 dst->fRect = r; in inset()
534 this->setRectRadii(raw.fRect, raw.fRadii); in readFromMemory()
553 fRect.dump(asHex); in dump()
580 if (!AreRectAndRadiiValid(fRect, fRadii)) { in isValid()
609 if (!fRect.isEmpty() || !allRadiiZero || !allRadiiSame || !allCornersSquare) { in isValid()
614 if (fRect.isEmpty() || !allRadiiZero || !allRadiiSame || !allCornersSquare) { in isValid()
619 if (fRect.isEmpty() || allRadiiZero || !allRadiiSame || allCornersSquare) { in isValid()
624 if (!SkScalarNearlyEqual(fRadii[i].fX, SkScalarHalf(fRect.width())) || in isValid()
625 !SkScalarNearlyEqual(fRadii[i].fY, SkScalarHalf(fRect.height()))) { in isValid()
631 if (fRect.isEmpty() || allRadiiZero || !allRadiiSame || allCornersSquare) { in isValid()
636 if (fRect.isEmpty() || allRadiiZero || allRadiiSame || allCornersSquare || in isValid()
642 if (fRect.isEmpty() || allRadiiZero || allRadiiSame || allCornersSquare || in isValid()