Lines Matching defs:fRight

31     int32_t fRight;  //!< larger x-axis bounds
85 result in fLeft greater than fRight, or fTop greater than fBottom.
89 @param r integer stored in fRight
103 @param w added to x and stored in fRight
113 Call sort() to reverse fLeft and fRight if needed.
127 Call sort() to reverse fLeft and fRight if needed.
129 @return fRight
131 int32_t right() const { return fRight; }
141 and sort() to reverse fLeft and fRight if needed.
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
252 @param right stored in fRight
258 fRight = right;
267 @param width added to x and stored in fRight
273 fRight = Sk32_sat_add(x, width);
280 fRight = width;
287 fRight = size.width();
298 @param dx offset added to fLeft and fRight
305 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, dy),
330 @param dx offset added to fLeft and subtracted from fRight
337 Sk32_sat_sub(fRight, dx), Sk32_sat_sub(fBottom, dy),
348 @param dx offset subtracted to fLeft and added from fRight
355 Sk32_sat_add(fRight, dx), Sk32_sat_add(fBottom, 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
372 fRight = Sk32_sat_add(fRight, dx);
376 /** Offsets SkIRect by adding delta.fX to fLeft, fRight; and by adding delta.fY to
397 fRight = Sk64_pin_to_s32((int64_t)fRight + newX - fLeft);
410 @param dx offset added to fLeft and subtracted from fRight
416 fRight = Sk32_sat_sub(fRight, 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.
445 @param dR offset added to fRight
451 fRight = Sk32_sat_add(fRight, dR);
455 /** Returns true if: fLeft <= x < fRight && fTop <= y < fBottom.
466 return x >= fLeft && x < fRight && y >= fTop && y < fBottom;
480 fRight >= r.fRight && fBottom >= r.fBottom;
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));
587 SkScalar fRight; //!< larger x-axis bounds
640 result in fLeft greater than fRight, or fTop greater than fBottom.
644 @param r SkScalar stored in fRight
658 @param w added to x and stored in fRight
678 Does not validate input; fLeft may be greater than fRight, fTop may be greater
687 SkIntToScalar(irect.fRight), SkIntToScalar(irect.fBottom)
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; }
720 accum *= fRight;
732 Call sort() to reverse fLeft and fRight if needed.
746 Call sort() to reverse fLeft and fRight if needed.
760 Call sort() to reverse fLeft and fRight if needed.
762 @return fRight
764 SkScalar right() const { return fRight; }
776 @return fRight minus fLeft
778 SkScalar width() const { return fRight - fLeft; }
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
862 fRight = SkIntToScalar(src.fRight);
872 @param right stored in fRight
878 fRight = right;
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
928 fRight = std::max(p0.fX, p1.fX);
938 @param width added to x and stored in fRight
944 fRight = x + width;
951 @param width stored in fRight
957 fRight = width;
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
1029 fRight += dx;
1033 /** Offsets SkRect by adding delta.fX to fLeft, fRight; and by adding delta.fY to
1054 fRight += newX - fLeft;
1067 @param dx added to fLeft and subtracted from fRight
1073 fRight -= 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) {
1187 fRight = std::max(fRight, r.right());
1191 /** Returns true if: fLeft <= x < fRight && fTop <= y < fBottom.
1199 return x >= fLeft && x < fRight && y >= fTop && y < fBottom;
1214 fRight >= r.fRight && fBottom >= r.fBottom;
1229 fRight >= SkIntToScalar(r.fRight) && fBottom >= SkIntToScalar(r.fBottom);
1234 SkScalarRoundToInt(fRight), SkScalarRoundToInt(fBottom)).
1241 SkScalarRoundToInt(fRight), SkScalarRoundToInt(fBottom));
1245 up fRight and fBottom, using
1247 SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom)).
1254 SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom));
1258 up fRight and fBottom, using
1260 SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom)).
1266 SkScalarCeilToScalar(fRight), SkScalarCeilToScalar(fBottom));
1270 of fRight and fBottom, using
1272 SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBottom)).
1279 SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBottom));
1284 SkScalarRoundToInt(fRight), SkScalarRoundToInt(fBottom)).
1295 up fRight and fBottom, using
1297 SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom)).
1307 of fRight and fBottom, using
1309 SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBottom)).
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));
1388 (SkScalar)fRight >= r.fRight && (SkScalar)fBottom >= r.fBottom;