Lines Matching defs:width
24 from position, width, and height. SkIRect describes an area; if its right
54 @param w width of constructed SkIRect
62 /** Returns constructed SkIRect set to (0, 0, size.width(), size.height()).
63 Does not validate input; size.width() or size.height() may be negative.
65 @param size values for SkIRect width and height
66 @return bounds (0, 0, size.width(), size.height())
72 /** Returns constructed SkIRect set to (pt.x(), pt.y(), pt.x() + size.width(),
73 pt.y() + size.height()). Does not validate input; size.width() or size.height() may be
77 @param size values for SkIRect width and height
78 @return bounds at pt with width and height of size
81 return MakeXYWH(pt.x(), pt.y(), size.width(), size.height());
105 @return bounds at (x, y) with width w and height h
162 int32_t width() const { return Sk32_can_overflow_sub(fRight, fLeft); }
174 @return SkISize (width, height)
176 SkISize size() const { return SkISize::Make(this->width(), this->height()); }
179 result may be negative. This is safer than calling width() since width() might
202 /** Returns true if width() or height() are zero or negative.
204 @return true if width() or height() are zero or negative
262 /** Sets SkIRect to: (x, y, x + width, y + height).
263 Does not validate input; width or height may be negative.
267 @param width added to x and stored in fRight
270 void setXYWH(int32_t x, int32_t y, int32_t width, int32_t height) {
273 fRight = Sk32_sat_add(x, width);
277 void setWH(int32_t width, int32_t height) {
280 fRight = width;
287 fRight = size.width();
300 @return SkIRect offset by dx and dy, with original width and height
317 @return SkIRect translated by offset, with original width and height
390 /** Offsets SkIRect so that fLeft equals newX, and fTop equals newY. width and height
393 @param newX stored in fLeft, preserving width()
553 and width() and height() will be zero or positive.
567 and width() and height() will be zero or positive.
580 from position, width, and height. SkRect describes an area; if its right
607 @param w SkScalar width of constructed SkRect
621 @param w integer width of constructed SkRect
629 /** Returns constructed SkRect set to (0, 0, size.width(), size.height()). Does not
630 validate input; size.width() or size.height() may be negative.
632 @param size SkScalar values for SkRect width and height
633 @return bounds (0, 0, size.width(), size.height())
660 @return bounds at (x, y) with width w and height h
667 /** Returns constructed SkIRect set to (0, 0, size.width(), size.height()).
668 Does not validate input; size.width() or size.height() may be negative.
670 @param size integer values for SkRect width and height
671 @return bounds (0, 0, size.width(), size.height())
674 return MakeIWH(size.width(), size.height());
693 width() or height().
695 @return true if width() or height() are zero or negative
705 width() or height().
707 @return true if width() or height() are zero or positive
778 SkScalar width() const { return fRight - fLeft; }
933 /** Sets SkRect to (x, y, x + width, y + height).
934 Does not validate input; width or height may be negative.
938 @param width added to x and stored in fRight
941 void setXYWH(SkScalar x, SkScalar y, SkScalar width, SkScalar height) {
944 fRight = x + width;
948 /** Sets SkRect to (0, 0, width, height). Does not validate input;
949 width or height may be negative.
951 @param width stored in fRight
954 void setWH(SkScalar width, SkScalar height) {
957 fRight = width;
960 void setIWH(int32_t width, int32_t height) {
961 this->setWH(SkIntToScalar(width), SkIntToScalar(height));
973 @return SkRect offset on axes, with original width and height
982 @return SkRect offset on axes, with original width and height
1047 /** Offsets SkRect so that fLeft equals newX, and fTop equals newY. width and height
1050 @param newX stored in fLeft, preserving width()
1321 and width() and height() will be zero or positive.
1336 and width() and height() will be zero or positive.