Lines Matching refs:SkScalar

391     SkScalar    fLeft, fTop, fRight, fBottom;
405 static SkRect SK_WARN_UNUSED_RESULT MakeWH(SkScalar w, SkScalar h) { in MakeWH()
423 static SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r, SkScalar b) { in MakeLTRB()
429 static SkRect SK_WARN_UNUSED_RESULT MakeXYWH(SkScalar x, SkScalar y, SkScalar w, SkScalar h) { in MakeXYWH()
484 SkScalar x() const { return fLeft; } in x()
485 SkScalar y() const { return fTop; } in y()
486 SkScalar left() const { return fLeft; } in left()
487 SkScalar top() const { return fTop; } in top()
488 SkScalar right() const { return fRight; } in right()
489 SkScalar bottom() const { return fBottom; } in bottom()
490 SkScalar width() const { return fRight - fLeft; } in width()
491 SkScalar height() const { return fBottom - fTop; } in height()
492 SkScalar centerX() const { return SkScalarHalf(fLeft + fRight); } in centerX()
493 SkScalar centerY() const { return SkScalarHalf(fTop + fBottom); } in centerY()
496 return SkScalarsEqual((SkScalar*)&a, (SkScalar*)&b, 4);
500 return !SkScalarsEqual((SkScalar*)&a, (SkScalar*)&b, 4);
519 void set(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) { in set()
526 void setLTRB(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) { in setLTRB()
580 void setXYWH(SkScalar x, SkScalar y, SkScalar width, SkScalar height) { in setXYWH()
587 void setWH(SkScalar width, SkScalar height) { in setWH()
614 SkRect makeOffset(SkScalar dx, SkScalar dy) const { in makeOffset()
621 SkRect makeInset(SkScalar dx, SkScalar dy) const { in makeInset()
628 SkRect makeOutset(SkScalar dx, SkScalar dy) const { in makeOutset()
635 void offset(SkScalar dx, SkScalar dy) { in offset()
649 void offsetTo(SkScalar newX, SkScalar newY) { in offsetTo()
661 void inset(SkScalar dx, SkScalar dy) { in inset()
673 void outset(SkScalar dx, SkScalar dy) { this->inset(-dx, -dy); } in outset()
686 bool SK_WARN_UNUSED_RESULT intersect(SkScalar left, SkScalar top,
687 SkScalar right, SkScalar bottom);
698 static bool Intersects(SkScalar al, SkScalar at, SkScalar ar, SkScalar ab, in Intersects()
699 SkScalar bl, SkScalar bt, SkScalar br, SkScalar bb) { in Intersects()
700 SkScalar L = SkMaxScalar(al, bl); in Intersects()
701 SkScalar R = SkMinScalar(ar, br); in Intersects()
702 SkScalar T = SkMaxScalar(at, bt); in Intersects()
703 SkScalar B = SkMinScalar(ab, bb); in Intersects()
712 bool intersects(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) const { in intersects()
734 void join(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
774 void growToInclude(SkScalar x, SkScalar y) { in growToInclude()
902 SkTSwap<SkScalar>(fLeft, fRight); in sort()
906 SkTSwap<SkScalar>(fTop, fBottom); in sort()
913 const SkScalar* asScalars() const { return &fLeft; } in asScalars()
922 (SkScalar)fLeft <= r.fLeft && (SkScalar)fTop <= r.fTop && in contains()
923 (SkScalar)fRight >= r.fRight && (SkScalar)fBottom >= r.fBottom; in contains()