Lines Matching refs:width
19 Size(int width, int height)
20 : width_(width < 0 ? 0 : width), height_(height < 0 ? 0 : height) {}
22 constexpr int width() const { return width_; }
25 void set_width(int width) { width_ = width < 0 ? 0 : width; }
28 void SetSize(int width, int height) {
29 set_width(width);
33 bool IsEmpty() const { return !width() || !height(); }
36 return base::StringPrintf("%dx%d", width(), height());
40 set_width(ps.width());
51 return lhs.width() == rhs.width() && lhs.height() == rhs.height();