Lines Matching defs:const
39 void dump(std::string& desc, int depth) const;
68 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) {
117 int32_t left() const { return fLeft; }
124 int32_t top() const { return fTop; }
131 int32_t right() const { return fRight; }
138 int32_t bottom() const { return fBottom; }
145 int32_t x() const { return fLeft; }
152 int32_t y() const { return fTop; }
155 SkIPoint topLeft() const { return {fLeft, fTop}; }
162 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); }
169 int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); }
176 SkISize size() const { return SkISize::Make(this->width(), this->height()); }
184 int64_t width64() const { return (int64_t)fRight - (int64_t)fLeft; }
192 int64_t height64() const { return (int64_t)fBottom - (int64_t)fTop; }
200 bool isEmpty64() const { return fRight <= fLeft || fBottom <= fTop; }
206 bool isEmpty() const {
223 friend bool operator==(const SkIRect& a, const SkIRect& b) {
234 friend bool operator!=(const SkIRect& a, const SkIRect& b) {
302 constexpr SkIRect makeOffset(int32_t dx, int32_t dy) const {
319 constexpr SkIRect makeOffset(SkIVector offset) const {
334 SkIRect makeInset(int32_t dx, int32_t dy) const {
352 SkIRect makeOutset(int32_t dx, int32_t dy) const {
386 void offset(const SkIPoint& delta) {
465 bool contains(int32_t x, int32_t y) const {
477 bool contains(const SkIRect& r) const {
491 inline bool contains(const SkRect& r) const;
501 bool containsNoEmptyCheck(const SkIRect& r) const {
515 bool intersect(const SkIRect& r) {
528 bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& a, const SkIRect& b);
537 static bool Intersects(const SkIRect& a, const SkIRect& b) {
549 void join(const SkIRect& r);
571 SkIRect makeSorted() const {
635 static constexpr SkRect SK_WARN_UNUSED_RESULT MakeSize(const SkSize& size) {
673 static SkRect Make(const SkISize& size) {
684 static SkRect SK_WARN_UNUSED_RESULT Make(const SkIRect& irect) {
697 bool isEmpty() const {
709 bool isSorted() const { return fLeft <= fRight && fTop <= fBottom; }
716 bool isFinite() const {
736 SkScalar x() const { return fLeft; }
743 SkScalar y() const { return fTop; }
750 SkScalar left() const { return fLeft; }
757 SkScalar top() const { return fTop; }
764 SkScalar right() const { return fRight; }
771 SkScalar bottom() const { return fBottom; }
778 SkScalar width() const { return fRight - fLeft; }
785 SkScalar height() const { return fBottom - fTop; }
792 SkScalar centerX() const {
802 SkScalar centerY() const {
817 friend bool operator==(const SkRect& a, const SkRect& b) {
818 return SkScalarsEqual((const SkScalar*)&a, (const SkScalar*)&b, 4);
831 friend bool operator!=(const SkRect& a, const SkRect& b) {
832 return !SkScalarsEqual((const SkScalar*)&a, (const SkScalar*)&b, 4);
844 void toQuad(SkPoint quad[4]) const;
859 void set(const SkIRect& src) {
891 void setBounds(const SkPoint pts[], int count) {
908 bool setBoundsCheck(const SkPoint pts[], int count);
918 void setBoundsNoCheck(const SkPoint pts[], int count);
926 void set(const SkPoint& p0, const SkPoint& p1) {
975 constexpr SkRect makeOffset(SkScalar dx, SkScalar dy) const {
984 constexpr SkRect makeOffset(SkVector v) const { return this->makeOffset(v.x(), v.y()); }
997 SkRect makeInset(SkScalar dx, SkScalar dy) const {
1012 SkRect makeOutset(SkScalar dx, SkScalar dy) const {
1043 void offset(const SkPoint& delta) {
1099 bool intersect(const SkRect& r);
1110 bool SK_WARN_UNUSED_RESULT intersect(const SkRect& a, const SkRect& b);
1131 bool intersects(const SkRect& r) const {
1143 static bool Intersects(const SkRect& a, const SkRect& b) {
1157 void join(const SkRect& r);
1168 void joinNonEmptyArg(const SkRect& r) {
1184 void joinPossiblyEmptyRect(const SkRect& r) {
1198 bool contains(SkScalar x, SkScalar y) const {
1210 bool contains(const SkRect& r) const {
1225 bool contains(const SkIRect& r) const {
1238 void round(SkIRect* dst) const {
1251 void roundOut(SkIRect* dst) const {
1264 void roundOut(SkRect* dst) const {
1276 void roundIn(SkIRect* dst) const {
1288 SkIRect round() const {
1301 SkIRect roundOut() const {
1313 SkIRect roundIn() const {
1340 SkRect makeSorted() const {
1350 const SkScalar* asScalars() const { return &fLeft; }
1359 void dump(bool asHex) const;
1366 void dump(std::string& desc, int depth) const;
1373 void dump() const { this->dump(false); }
1382 void dumpHex() const { this->dump(true); }
1385 inline bool SkIRect::contains(const SkRect& r) const {