Lines Matching refs:radii
19 SkRRect describes a rounded rectangle with a bounds and a pair of radii for each corner.
20 The bounds and radii can be set so that SkRRect describes: a rectangle with sharp corners;
24 SkRRect may have up to eight different radii, one for each axis on each of its four
27 SkRRect may modify the provided parameters when initializing bounds and radii.
28 If either axis radii is zero or less: radii are stored as zero; corner is square.
29 If corner curves overlap, radii are proportionally reduced to fit within bounds.
35 Initializes corner radii to (0, 0), and sets type of kEmpty_Type.
41 /** Initializes to copy of rrect bounds and corner radii.
48 /** Copies rrect bounds and corner radii.
64 kRect_Type, //!< non-zero width and height, and zeroed radii
65 kOval_Type, //!< non-zero width and height filled with radii
66 kSimple_Type, //!< non-zero width and height with equal radii
67 kNinePatch_Type, //!< non-zero width and height with axis-aligned radii
68 kComplex_Type, //!< non-zero width and height with arbitrary radii
100 /** Returns top-left corner radii. If type() returns kEmpty_Type, kRect_Type,
101 kOval_Type, or kSimple_Type, returns a value representative of all corner radii.
105 @return corner radii for simple types
112 corner radii to zero and sets type to kEmpty_Type.
116 /** Sets bounds to sorted rect, and sets corner radii to zero.
134 Initializes corner radii to (0, 0), and sets type of kEmpty_Type.
140 /** Initializes to copy of r bounds and zeroes corner radii.
151 /** Sets bounds to oval, x-axis radii to half oval.width(), and all y-axis radii
164 /** Sets to rounded rectangle with the same radii for all four corners.
182 /** Sets bounds to oval, x-axis radii to half oval.width(), and all y-axis radii
190 /** Sets to rounded rectangle with the same radii for all four corners.
205 /** Sets bounds to rect. Sets radii to (leftRad, topRad), (rightRad, topRad),
216 Nine patch refers to the nine parts defined by the radii: one center rectangle,
228 /** Sets bounds to rect. Sets radii array for individual control of all for corners.
231 Otherwise, if one of each corner radii are zero, sets to kRect_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.
234 Otherwise, if all x-axis radii are equal, and all y-axis radii are equal,
238 @param radii corner x-axis and y-axis radii
242 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
245 The radii are stored: top-left, top-right, bottom-right, bottom-left.
248 kUpperLeft_Corner, //!< index of top-left corner radii
249 kUpperRight_Corner, //!< index of top-right corner radii
250 kLowerRight_Corner, //!< index of bottom-right corner radii
251 kLowerLeft_Corner, //!< index of bottom-left corner radii
263 Both radii may be zero. If not zero, both are positive and finite.
265 @return x-axis and y-axis radii for one corner
267 SkVector radii(Corner corner) const { return fRadii[corner]; }
277 /** Returns true if bounds and radii in a are equal to bounds and radii in b.
282 @param a SkRect bounds and radii to compare
283 @param b SkRect bounds and radii to compare
290 /** Returns true if bounds and radii in a are not equal to bounds and radii in b.
295 @param a SkRect bounds and radii to compare
296 @param b SkRect bounds and radii to compare
304 radii by dx and dy. dx and dy may be positive, negative, or zero. dst may be
317 @param dst insets bounds and radii
323 /** Insets bounds by dx and dy, and adjusts radii by dx and dy. dx and dy may be
341 /** Outsets dst bounds by dx and dy, and adjusts radii by dx and dy. dx and dy may be
354 @param dst outset bounds and radii
360 /** Outsets bounds by dx and dy, and adjusts radii by dx and dy. dx and dy may be
391 @return SkRRect bounds offset by (dx, dy), with unchanged corner radii
397 /** Returns true if rect is inside the bounds and corner radii, and if
407 /** Returns true if bounds and radii values are finite and describe a SkRRect
412 @return true if bounds and radii match type()
491 SkRRect(const SkRect& rect, const SkVector radii[4], int32_t type)
493 , fRadii{radii[0], radii[1], radii[2], radii[3]}
504 // Returns true if the radii had to be scaled to fit rect