Lines Matching refs:dx
303 /** Copies SkRRect to dst, then insets dst bounds by dx and dy, and adjusts dst
304 radii by dx and dy. dx and dy may be positive, negative, or zero. dst may be
309 If dx exceeds half dst bounds width, dst bounds left and right are set to
313 If dx or dy cause the bounds to become infinite, dst bounds is zeroed.
315 @param dx added to rect().fLeft, and subtracted from rect().fRight
321 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
323 /** Insets bounds by dx and dy, and adjusts radii by dx and dy. dx and dy may be
328 If dx exceeds half bounds width, bounds left and right are set to
332 If dx or dy cause the bounds to become infinite, bounds is zeroed.
334 @param dx added to rect().fLeft, and subtracted from rect().fRight
337 void inset(SkScalar dx, SkScalar dy) {
338 this->inset(dx, dy, this);
341 /** Outsets dst bounds by dx and dy, and adjusts radii by dx and dy. dx and dy may be
346 If dx exceeds half dst bounds width, dst bounds left and right are set to
350 If dx or dy cause the bounds to become infinite, dst bounds is zeroed.
352 @param dx subtracted from rect().fLeft, and added to rect().fRight
356 void outset(SkScalar dx, SkScalar dy, SkRRect* dst) const {
357 this->inset(-dx, -dy, dst);
360 /** Outsets bounds by dx and dy, and adjusts radii by dx and dy. dx and dy may be
365 If dx exceeds half bounds width, bounds left and right are set to
369 If dx or dy cause the bounds to become infinite, bounds is zeroed.
371 @param dx subtracted from rect().fLeft, and added to rect().fRight
374 void outset(SkScalar dx, SkScalar dy) {
375 this->inset(-dx, -dy, this);
378 /** Translates SkRRect by (dx, dy).
380 @param dx offset added to rect().fLeft and rect().fRight
383 void offset(SkScalar dx, SkScalar dy) {
384 fRect.offset(dx, dy);
387 /** Returns SkRRect translated by (dx, dy).
389 @param dx offset added to rect().fLeft and rect().fRight
391 @return SkRRect bounds offset by (dx, dy), with unchanged corner radii
393 SkRRect SK_WARN_UNUSED_RESULT makeOffset(SkScalar dx, SkScalar dy) const {
394 return SkRRect(fRect.makeOffset(dx, dy), fRadii, fType);