Lines Matching refs:fLeft
29 int32_t fLeft; //!< smaller x-axis bounds
76 @param pt values for SkIRect fLeft and fTop
85 result in fLeft greater than fRight, or fTop greater than fBottom.
87 @param l integer stored in fLeft
101 @param x stored in fLeft
113 Call sort() to reverse fLeft and fRight if needed.
115 @return fLeft
117 int32_t left() const { return fLeft; }
127 Call sort() to reverse fLeft and fRight if needed.
141 and sort() to reverse fLeft and fRight if needed.
143 @return fLeft
145 int32_t x() const { return fLeft; }
155 SkIPoint topLeft() const { return {fLeft, fTop}; }
160 @return fRight minus fLeft
162 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); }
182 @return fRight minus fLeft cast to int64_t
184 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; }
194 /** Returns true if fLeft is equal to or greater than fRight, or if fTop is equal
200 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; }
216 /** Returns true if all members in a: fLeft, fTop, fRight, and fBottom; are
227 /** Returns true if any member in a: fLeft, fTop, fRight, and fBottom; is not
250 @param left stored in fLeft
256 fLeft = left;
265 @param x stored in fLeft
271 fLeft = x;
278 fLeft = 0;
285 fLeft = 0;
298 @param dx offset added to fLeft and fRight
304 Sk32_sat_add(fLeft, dx), Sk32_sat_add(fTop, dy),
330 @param dx offset added to fLeft and subtracted from fRight
336 Sk32_sat_add(fLeft, dx), Sk32_sat_add(fTop, dy),
348 @param dx offset subtracted to fLeft and added from fRight
354 Sk32_sat_sub(fLeft, dx), Sk32_sat_sub(fTop, dy),
359 /** Offsets SkIRect by adding dx to fLeft, fRight; and by adding dy to fTop, fBottom.
366 @param dx offset added to fLeft and fRight
370 fLeft = Sk32_sat_add(fLeft, dx);
376 /** Offsets SkIRect by adding delta.fX to fLeft, fRight; and by adding delta.fY to
390 /** Offsets SkIRect so that fLeft equals newX, and fTop equals newY. width and height
393 @param newX stored in fLeft, preserving width()
397 fRight = Sk64_pin_to_s32((int64_t)fRight + newX - fLeft);
399 fLeft = newX;
410 @param dx offset added to fLeft and subtracted from fRight
414 fLeft = Sk32_sat_add(fLeft, dx);
427 @param dx subtracted to fLeft and added from fRight
432 /** Adjusts SkIRect by adding dL to fLeft, dT to fTop, dR to fRight, and dB to fBottom.
443 @param dL offset added to fLeft
449 fLeft = Sk32_sat_add(fLeft, dL);
455 /** Returns true if: fLeft <= x < fRight && fTop <= y < fBottom.
466 return x >= fLeft && x < fRight && y >= fTop && y < fBottom;
479 fLeft <= r.fLeft && fTop <= r.fTop &&
502 SkASSERT(fLeft < fRight && fTop < fBottom);
503 SkASSERT(r.fLeft < r.fRight && r.fTop < r.fBottom);
504 return fLeft <= r.fLeft && fTop <= r.fTop && fRight >= r.fRight && fBottom >= r.fBottom;
551 /** Swaps fLeft and fRight if fLeft is greater than fRight; and swaps
557 if (fLeft > fRight) {
558 swap(fLeft, fRight);
565 /** Returns SkIRect with fLeft and fRight swapped if fLeft is greater than fRight; and
572 return MakeLTRB(std::min(fLeft, fRight), std::min(fTop, fBottom),
573 std::max(fLeft, fRight), std::max(fTop, fBottom));
585 SkScalar fLeft; //!< smaller x-axis bounds
640 result in fLeft greater than fRight, or fTop greater than fBottom.
642 @param l SkScalar stored in fLeft
656 @param x stored in fLeft
678 Does not validate input; fLeft may be greater than fRight, fTop may be greater
686 SkIntToScalar(irect.fLeft), SkIntToScalar(irect.fTop),
691 /** Returns true if fLeft is equal to or greater than fRight, or if fTop is equal
700 return !(fLeft < fRight && fTop < fBottom);
703 /** Returns true if fLeft is equal to or less than fRight, or if fTop is equal
709 bool isSorted() const { return fLeft <= fRight && fTop <= fBottom; }
718 accum *= fLeft;
732 Call sort() to reverse fLeft and fRight if needed.
734 @return fLeft
736 SkScalar x() const { return fLeft; }
746 Call sort() to reverse fLeft and fRight if needed.
748 @return fLeft
750 SkScalar left() const { return fLeft; }
760 Call sort() to reverse fLeft and fRight if needed.
776 @return fRight minus fLeft
778 SkScalar width() const { return fRight - fLeft; }
793 // don't use SkScalarHalf(fLeft + fBottom) as that might overflow before the 0.5
794 return SkScalarHalf(fLeft) + SkScalarHalf(fRight);
807 /** Returns true if all members in a: fLeft, fTop, fRight, and fBottom; are
821 /** Returns true if any in a: fLeft, fTop, fRight, and fBottom; does not
860 fLeft = SkIntToScalar(src.fLeft);
870 @param left stored in fLeft
876 fLeft = left;
885 Result is either empty or sorted: fLeft is less than or equal to fRight, and
899 Result is either empty or sorted: fLeft is less than or equal to fRight, and
927 fLeft = std::min(p0.fX, p1.fX);
936 @param x stored in fLeft
942 fLeft = x;
955 fLeft = 0;
971 @param dx added to fLeft and fRight
976 return MakeLTRB(fLeft + dx, fTop + dy, fRight + dx, fBottom + dy);
993 @param dx added to fLeft and subtracted from fRight
998 return MakeLTRB(fLeft + dx, fTop + dy, fRight - dx, fBottom - dy);
1008 @param dx subtracted to fLeft and added from fRight
1013 return MakeLTRB(fLeft - dx, fTop - dy, fRight + dx, fBottom + dy);
1016 /** Offsets SkRect by adding dx to fLeft, fRight; and by adding dy to fTop, fBottom.
1023 @param dx offset added to fLeft and fRight
1027 fLeft += dx;
1033 /** Offsets SkRect by adding delta.fX to fLeft, fRight; and by adding delta.fY to
1047 /** Offsets SkRect so that fLeft equals newX, and fTop equals newY. width and height
1050 @param newX stored in fLeft, preserving width()
1054 fRight += newX - fLeft;
1056 fLeft = newX;
1067 @param dx added to fLeft and subtracted from fRight
1071 fLeft += dx;
1084 @param dx subtracted to fLeft and added from fRight
1132 return Intersects(fLeft, fTop, fRight, fBottom,
1133 r.fLeft, r.fTop, r.fRight, r.fBottom);
1144 return Intersects(a.fLeft, a.fTop, a.fRight, a.fBottom,
1145 b.fLeft, b.fTop, b.fRight, b.fBottom);
1171 if (fLeft >= fRight || fTop >= fBottom) {
1185 fLeft = std::min(fLeft, r.left());
1191 /** Returns true if: fLeft <= x < fRight && fTop <= y < fBottom.
1199 return x >= fLeft && x < fRight && y >= fTop && y < fBottom;
1213 fLeft <= r.fLeft && fTop <= r.fTop &&
1228 fLeft <= SkIntToScalar(r.fLeft) && fTop <= SkIntToScalar(r.fTop) &&
1233 members, using (SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop),
1240 dst->setLTRB(SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop),
1244 /** Sets SkIRect by discarding the fractional portion of fLeft and fTop; and rounding
1246 (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1253 dst->setLTRB(SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1257 /** Sets SkRect by discarding the fractional portion of fLeft and fTop; and rounding
1259 (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1265 dst->setLTRB(SkScalarFloorToScalar(fLeft), SkScalarFloorToScalar(fTop),
1269 /** Sets SkRect by rounding up fLeft and fTop; and discarding the fractional portion
1271 (SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop),
1278 dst->setLTRB(SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop),
1283 members, using (SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop),
1294 /** Sets SkIRect by discarding the fractional portion of fLeft and fTop; and rounding
1296 (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1306 /** Sets SkIRect by rounding up fLeft and fTop; and discarding the fractional portion
1308 (SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop),
1319 /** Swaps fLeft and fRight if fLeft is greater than fRight; and swaps
1325 if (fLeft > fRight) {
1326 swap(fLeft, fRight);
1334 /** Returns SkRect with fLeft and fRight swapped if fLeft is greater than fRight; and
1341 return MakeLTRB(std::min(fLeft, fRight), std::min(fTop, fBottom),
1342 std::max(fLeft, fRight), std::max(fTop, fBottom));
1348 @return pointer to fLeft
1350 const SkScalar* asScalars() const { return &fLeft; }
1387 (SkScalar)fLeft <= r.fLeft && (SkScalar)fTop <= r.fTop &&