Lines Matching defs:rect

89         @return  rect().fRight minus rect().fLeft
96 @return rect().fBottom minus rect().fTop
116 /** Sets bounds to sorted rect, and sets corner radii to zero.
120 @param rect bounds to set
122 void setRect(const SkRect& rect) {
123 if (!this->initializeRect(rect)) {
165 If rect is empty, sets to kEmpty_Type.
167 Otherwise, if xRad is at least half rect.width() and yRad is at least half
168 rect.height(), sets to kOval_Type.
171 @param rect bounds of rounded rectangle
176 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) {
178 rr.setRectXY(rect, xRad, yRad);
191 If rect is empty, sets to kEmpty_Type.
193 Otherwise, if xRad is at least half rect.width() and yRad is at least half
194 rect.height(), sets to kOval_Type.
197 @param rect bounds of rounded rectangle
203 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
205 /** Sets bounds to rect. Sets radii to (leftRad, topRad), (rightRad, topRad),
208 If rect is empty, sets to kEmpty_Type.
211 Otherwise, if leftRad and rightRad are equal and at least half rect.width(), and
212 topRad and bottomRad are equal at least half rect.height(), sets to kOval_Type.
219 @param rect bounds of rounded rectangle
225 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
228 /** Sets bounds to rect. Sets radii array for individual control of all for corners.
230 If rect is empty, sets to kEmpty_Type.
232 Otherwise, if all x-axis radii are equal and at least half rect.width(), and
233 all y-axis radii are equal at least half rect.height(), sets to kOval_Type.
237 @param rect bounds of rounded rectangle
242 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
260 const SkRect& rect() const { return fRect; }
271 Result is identical to rect().
315 @param dx added to rect().fLeft, and subtracted from rect().fRight
316 @param dy added to rect().fTop, and subtracted from rect().fBottom
334 @param dx added to rect().fLeft, and subtracted from rect().fRight
335 @param dy added to rect().fTop, and subtracted from rect().fBottom
352 @param dx subtracted from rect().fLeft, and added to rect().fRight
353 @param dy subtracted from rect().fTop, and added to rect().fBottom
371 @param dx subtracted from rect().fLeft, and added to rect().fRight
372 @param dy subtracted from rect().fTop, and added to rect().fBottom
380 @param dx offset added to rect().fLeft and rect().fRight
381 @param dy offset added to rect().fTop and rect().fBottom
389 @param dx offset added to rect().fLeft and rect().fRight
390 @param dy offset added to rect().fTop and rect().fBottom
397 /** Returns true if rect is inside the bounds and corner radii, and if
398 SkRRect and rect are not empty.
400 @param rect area tested for containment
401 @return true if SkRRect contains rect
405 bool contains(const SkRect& rect) const;
491 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type)
492 : fRect(rect)
497 * Initializes fRect. If the passed in rect is not finite or empty the rrect will be fully
504 // Returns true if the radii had to be scaled to fit rect