Lines Matching defs:fLeft
30 int32_t fLeft;
38 When equal to or less than fLeft, SkIRect is empty.
91 result in fLeft greater than fRight, or fTop greater than fBottom.
93 @param l integer stored in fLeft
107 @param x stored in fLeft
119 Call sort() to reverse fLeft and fRight if needed.
121 @return fLeft
123 int32_t left() const { return fLeft; }
133 Call sort() to reverse fLeft and fRight if needed.
147 and sort() to reverse fLeft and fRight if needed.
149 @return fLeft
151 int32_t x() const { return fLeft; }
163 @return fRight minus fLeft
165 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); }
188 int32_t centerX() const { return SkToS32(((int64_t)fRight + fLeft) >> 1); }
199 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; }
206 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; }
221 /** Returns true if all members in a: fLeft, fTop, fRight, and fBottom; are
232 /** Returns true if any member in a: fLeft, fTop, fRight, and fBottom; is not
243 /** Returns true if all members: fLeft, fTop, fRight, and fBottom; values are
249 return SkTFitsIn<int16_t>(fLeft) && SkTFitsIn<int16_t>(fTop) &&
265 @param left assigned to fLeft
271 fLeft = left;
281 @param left stored in fLeft
293 @param x stored in fLeft
299 fLeft = x;
312 @param dx offset added to fLeft and fRight
318 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
445 return l >= fRight || fLeft >= r || t >= fBottom || fTop >= b;
448 /** Returns true if: fLeft <= x < fRight && fTop <= y < fBottom.
459 return (unsigned)(x - fLeft) < (unsigned)(fRight - fLeft) &&
477 fLeft <= left && fTop <= top &&
491 fLeft <= r.fLeft && fTop <= r.fTop &&
521 SkASSERT(fLeft < fRight && fTop < fBottom);
524 return fLeft <= left && fTop <= top &&
537 return containsNoEmptyCheck(r.fLeft, r.fTop, r.fRight, r.fBottom);
564 SkMax32(a.fLeft, b.fLeft),
656 this->join(r.fLeft, r.fTop, r.fRight, r.fBottom);
659 /** Swaps fLeft and fRight if fLeft is greater than fRight; and swaps
664 if (fLeft > fRight) {
665 SkTSwap<int32_t>(fLeft, fRight);
672 /** Returns SkRect with fLeft and fRight swapped if fLeft is greater than fRight; and
679 return MakeLTRB(SkMin32(fLeft, fRight), SkMin32(fTop, fBottom),
680 SkMax32(fLeft, fRight), SkMax32(fTop, fBottom));
705 SkScalar fLeft;
713 horizontal values when sorted. When equal to or less than fLeft, SkRect is empty.
785 result in fLeft greater than fRight, or fTop greater than fBottom.
787 @param l SkScalar stored in fLeft
801 @param x stored in fLeft
819 r.set(SkIntToScalar(irect.fLeft),
837 Does not validate input; fLeft may be greater than fRight, fTop may be greater
845 r.set(SkIntToScalar(irect.fLeft),
852 /** Returns true if fLeft is equal to or greater than fRight, or if fTop is equal
858 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; }
860 /** Returns true if fLeft is equal to or less than fRight, or if fTop is equal
866 bool isSorted() const { return fLeft <= fRight && fTop <= fBottom; }
875 accum *= fLeft;
889 Call sort() to reverse fLeft and fRight if needed.
891 @return fLeft
893 SkScalar x() const { return fLeft; }
903 Call sort() to reverse fLeft and fRight if needed.
905 @return fLeft
907 SkScalar left() const { return fLeft; }
917 Call sort() to reverse fLeft and fRight if needed.
933 @return fRight minus fLeft
935 SkScalar width() const { return fRight - fLeft; }
949 SkScalar centerX() const { return SkScalarHalf(fLeft + fRight); }
958 /** Returns true if all members in a: fLeft, fTop, fRight, and fBottom; are
972 /** Returns true if any in a: fLeft, fTop, fRight, and fBottom; does not
1008 fLeft = SkIntToScalar(src.fLeft);
1018 @param left stored in fLeft
1024 fLeft = left;
1034 @param left stored in fLeft
1048 @param left promoted to SkScalar and stored in fLeft
1054 fLeft = SkIntToScalar(left);
1068 fLeft = fTop = 0;
1076 Result is either empty or sorted: fLeft is less than or equal to fRight, and
1092 Result is either empty or sorted: fLeft is less than or equal to fRight, and
1106 Result is either empty or sorted: fLeft is less than or equal to fRight, and
1122 fLeft = SkMinScalar(p0.fX, p1.fX);
1131 @param x stored in fLeft
1137 fLeft = x;
1150 fLeft = 0;
1163 @param dx added to fLeft and fRight
1168 return MakeLTRB(fLeft + dx, fTop + dy, fRight + dx, fBottom + dy);
1178 @param dx added to fLeft and subtracted from fRight
1183 return MakeLTRB(fLeft + dx, fTop + dy, fRight - dx, fBottom - dy);
1193 @param dx subtracted to fLeft and added from fRight
1198 return MakeLTRB(fLeft - dx, fTop - dy, fRight + dx, fBottom + dy);
1201 /** Offsets SkRect by adding dx to fLeft, fRight; and by adding dy to fTop, fBottom.
1208 @param dx offset added to fLeft and fRight
1212 fLeft += dx;
1218 /** Offsets SkRect by adding delta.fX to fLeft, fRight; and by adding delta.fY to
1232 /** Offsets SkRect so that fLeft equals newX, and fTop equals newY. width and height
1235 @param newX stored in fLeft, preserving width()
1239 fRight += newX - fLeft;
1241 fLeft = newX;
1252 @param dx added to fLeft and subtracted from fRight
1256 fLeft += dx;
1269 @param dx subtracted to fLeft and added from fRight
1337 return Intersects(fLeft, fTop, fRight, fBottom, left, top, right, bottom);
1347 return Intersects(fLeft, fTop, fRight, fBottom,
1348 r.fLeft, r.fTop, r.fRight, r.fBottom);
1359 return Intersects(a.fLeft, a.fTop, a.fRight, a.fBottom,
1360 b.fLeft, b.fTop, b.fRight, b.fBottom);
1386 this->join(r.fLeft, r.fTop, r.fRight, r.fBottom);
1401 if (fLeft >= fRight || fTop >= fBottom) {
1415 fLeft = SkMinScalar(fLeft, r.left());
1432 fLeft <= r.fLeft && fTop <= r.fTop &&
1447 fLeft <= SkIntToScalar(r.fLeft) && fTop <= SkIntToScalar(r.fTop) &&
1452 members, using (SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop),
1459 dst->set(SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop),
1463 /** Sets SkIRect by discarding the fractional portion of fLeft and fTop; and
1464 rounding up fRight and fbottom, using (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1471 dst->set(SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1475 /** Sets SkRect by discarding the fractional portion of fLeft and fTop; and
1476 rounding up fRight and fbottom, using (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1482 dst->set(SkScalarFloorToScalar(fLeft),
1488 /** Sets SkRect by rounding up fLeft and fTop; and
1490 (SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop),
1497 dst->set(SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop),
1502 members, using (SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop),
1513 /** Sets SkIRect by discarding the fractional portion of fLeft and fTop; and
1514 rounding up fRight and fbottom, using (SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
1525 /** Swaps fLeft and fRight if fLeft is greater than fRight; and swaps
1530 if (fLeft > fRight) {
1531 SkTSwap<SkScalar>(fLeft, fRight);
1539 /** Returns SkRect with fLeft and fRight swapped if fLeft is greater than fRight; and
1546 return MakeLTRB(SkMinScalar(fLeft, fRight), SkMinScalar(fTop, fBottom),
1547 SkMaxScalar(fLeft, fRight), SkMaxScalar(fTop, fBottom));
1553 @return pointer to fLeft
1555 const SkScalar* asScalars() const { return &fLeft; }
1583 (SkScalar)fLeft <= r.fLeft && (SkScalar)fTop <= r.fTop &&