Lines Matching defs:height
24 from position, width, and height. SkIRect describes an area; if its right
55 @param h height 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())
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
169 int32_t height() const { return Sk32_can_overflow_sub(fBottom, fTop); }
174 @return SkISize (width, height)
176 SkISize size() const { return SkISize::Make(this->width(), this->height()); }
187 result may be negative. This is safer than calling height() since height() 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.
268 @param height added to y and stored in fBottom
270 void setXYWH(int32_t x, int32_t y, int32_t width, int32_t height) {
274 fBottom = Sk32_sat_add(y, height);
277 void setWH(int32_t width, int32_t height) {
281 fBottom = height;
288 fBottom = size.height();
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
394 @param newY stored in fTop, preserving height()
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
608 @param h SkScalar height of constructed SkRect
622 @param h integer height 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
785 SkScalar height() const { return fBottom - fTop; }
933 /** Sets SkRect to (x, y, x + width, y + height).
934 Does not validate input; width or height may be negative.
939 @param height added to y and stored in fBottom
941 void setXYWH(SkScalar x, SkScalar y, SkScalar width, SkScalar height) {
945 fBottom = y + height;
948 /** Sets SkRect to (0, 0, width, height). Does not validate input;
949 width or height may be negative.
952 @param height stored in fBottom
954 void setWH(SkScalar width, SkScalar height) {
958 fBottom = height;
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
1051 @param newY stored in fTop, preserving height()
1321 and width() and height() will be zero or positive.
1336 and width() and height() will be zero or positive.