Lines Matching refs:fTop

30     int32_t fTop;    //!< smaller y-axis bounds
76 @param pt values for SkIRect fLeft and fTop
85 result in fLeft greater than fRight, or fTop greater than fBottom.
88 @param t integer stored in fTop
102 @param y stored in fTop
120 and sort() to reverse fTop and fBottom if needed.
122 @return fTop
124 int32_t top() const { return fTop; }
134 and sort() to reverse fTop and fBottom if needed.
148 and sort() to reverse fTop and fBottom if needed.
150 @return fTop
152 int32_t y() const { return fTop; }
155 SkIPoint topLeft() const { return {fLeft, fTop}; }
167 @return fBottom minus fTop
169 int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); }
190 @return fBottom minus fTop cast to int64_t
192 int64_t height64() const { return (int64_t)fBottom - (int64_t)fTop; }
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
251 @param top stored in fTop
257 fTop = top;
266 @param y stored in fTop
272 fTop = y;
279 fTop = 0;
286 fTop = 0;
299 @param dy offset added to fTop and fBottom
304 Sk32_sat_add(fLeft, dx), Sk32_sat_add(fTop, dy),
331 @param dy offset added to fTop and subtracted from fBottom
336 Sk32_sat_add(fLeft, dx), Sk32_sat_add(fTop, dy),
349 @param dy offset subtracted to fTop and added from fBottom
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.
367 @param dy offset added to fTop and fBottom
371 fTop = Sk32_sat_add(fTop, dy);
377 fTop, fBottom.
390 /** Offsets SkIRect so that fLeft equals newX, and fTop equals newY. width and height
394 @param newY stored in fTop, preserving height()
398 fBottom = Sk64_pin_to_s32((int64_t)fBottom + newY - fTop);
400 fTop = newY;
411 @param dy offset added to fTop and subtracted from fBottom
415 fTop = Sk32_sat_add(fTop, dy);
428 @param dy subtracted to fTop and added from fBottom
432 /** Adjusts SkIRect by adding dL to fLeft, dT to fTop, dR to fRight, and dB to fBottom.
444 @param dT offset added to fTop
450 fTop = Sk32_sat_add(fTop, dT);
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;
552 fTop and fBottom if fTop is greater than fBottom. Result may be empty,
560 if (fTop > fBottom) {
561 swap(fTop, fBottom);
566 with fTop and fBottom swapped if fTop is greater than fBottom. Result may be empty;
572 return MakeLTRB(std::min(fLeft, fRight), std::min(fTop, fBottom),
573 std::max(fLeft, fRight), std::max(fTop, fBottom));
586 SkScalar fTop; //!< smaller y-axis bounds
640 result in fLeft greater than fRight, or fTop greater than fBottom.
643 @param t SkScalar stored in fTop
657 @param y stored in fTop
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; }
719 accum *= fTop;
739 and sort() to reverse fTop and fBottom if needed.
741 @return fTop
743 SkScalar y() const { return fTop; }
753 and sort() to reverse fTop and fBottom if needed.
755 @return fTop
757 SkScalar top() const { return fTop; }
767 and sort() to reverse fTop and fBottom if needed.
783 @return fBottom minus fTop
785 SkScalar height() const { return fBottom - fTop; }
803 // don't use SkScalarHalf(fTop + fBottom) as that might overflow before the 0.5
804 return SkScalarHalf(fTop) + SkScalarHalf(fBottom);
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
861 fTop = SkIntToScalar(src.fTop);
871 @param top stored in fTop
877 fTop = top;
886 fTop is less than or equal to fBottom.
900 fTop is less than or equal to fBottom.
929 fTop = std::min(p0.fY, p1.fY);
937 @param y stored in fTop
943 fTop = y;
956 fTop = 0;
972 @param dy added to fTop and fBottom
976 return MakeLTRB(fLeft + dx, fTop + dy, fRight + dx, fBottom + dy);
994 @param dy added to fTop and subtracted from fBottom
998 return MakeLTRB(fLeft + dx, fTop + dy, fRight - dx, fBottom - dy);
1009 @param dy subtracted to fTop and added from fBottom
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.
1024 @param dy offset added to fTop and fBottom
1028 fTop += dy;
1034 fTop, fBottom.
1047 /** Offsets SkRect so that fLeft equals newX, and fTop equals newY. width and height
1051 @param newY stored in fTop, preserving height()
1055 fBottom += newY - fTop;
1057 fTop = newY;
1068 @param dy added to fTop and subtracted from fBottom
1072 fTop += dy;
1085 @param dy subtracted to fTop and added from fBottom
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) {
1186 fTop = std::min(fTop, r.top());
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),
1320 fTop and fBottom if fTop is greater than fBottom. Result may be empty;
1329 if (fTop > fBottom) {
1330 swap(fTop, fBottom);
1335 with fTop and fBottom swapped if fTop is greater than fBottom. Result may be empty;
1341 return MakeLTRB(std::min(fLeft, fRight), std::min(fTop, fBottom),
1342 std::max(fLeft, fRight), std::max(fTop, fBottom));
1387 (SkScalar)fLeft <= r.fLeft && (SkScalar)fTop <= r.fTop &&