Lines Matching defs:const
46 SkRRect(const SkRRect& rrect) = default;
53 SkRRect& operator=(const SkRRect& rrect) = default;
72 Type getType() const {
77 Type type() const { return this->getType(); }
79 inline bool isEmpty() const { return kEmpty_Type == this->getType(); }
80 inline bool isRect() const { return kRect_Type == this->getType(); }
81 inline bool isOval() const { return kOval_Type == this->getType(); }
82 inline bool isSimple() const { return kSimple_Type == this->getType(); }
83 inline bool isNinePatch() const { return kNinePatch_Type == this->getType(); }
84 inline bool isComplex() const { return kComplex_Type == this->getType(); }
91 SkScalar width() const { return fRect.width(); }
98 SkScalar height() const { return fRect.height(); }
107 SkVector getSimpleRadii() const {
122 void setRect(const SkRect& rect) {
145 static SkRRect MakeRect(const SkRect& r) {
158 static SkRRect MakeOval(const SkRect& oval) {
176 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) {
188 void setOval(const SkRect& oval);
203 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
225 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
242 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
260 const SkRect& rect() const { return fRect; }
267 SkVector radii(Corner corner) const { return fRadii[corner]; }
275 const SkRect& getBounds() const { return fRect; }
286 friend bool operator==(const SkRRect& a, const SkRRect& b) {
299 friend bool operator!=(const SkRRect& a, const SkRRect& b) {
321 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
356 void outset(SkScalar dx, SkScalar dy, SkRRect* dst) const {
393 SkRRect SK_WARN_UNUSED_RESULT makeOffset(SkScalar dx, SkScalar dy) const {
405 bool contains(const SkRect& rect) const;
416 bool isValid() const;
428 size_t writeToMemory(void* buffer) const;
440 size_t readFromMemory(const void* buffer, size_t length);
454 bool transform(const SkMatrix& matrix, SkRRect* dst) const;
464 void dump(bool asHex) const;
465 SkString dumpToString(bool asHex) const;
472 void dump() const { this->dump(false); }
479 void dump(std::string& desc, int depth) const;
486 void dumpHex() const { this->dump(true); }
489 static bool AreRectAndRadiiValid(const SkRect&, const SkVector[4]);
491 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type)
500 bool initializeRect(const SkRect&);
503 bool checkCornerContainment(SkScalar x, SkScalar y) const;