Lines Matching refs:rhs
52 void RenderRegion::intersect(const RenderRegion& rhs) in intersect() argument
56 auto x2 = rhs.x + rhs.w; in intersect()
57 auto y2 = rhs.y + rhs.h; in intersect()
59 x = (x > rhs.x) ? x : rhs.x; in intersect()
60 y = (y > rhs.y) ? y : rhs.y; in intersect()
69 void RenderRegion::add(const RenderRegion& rhs) in add() argument
71 if (rhs.x < x) { in add()
72 w += (x - rhs.x); in add()
73 x = rhs.x; in add()
75 if (rhs.y < y) { in add()
76 h += (y - rhs.y); in add()
77 y = rhs.y; in add()
79 if (rhs.x + rhs.w > x + w) w = (rhs.x + rhs.w) - x; in add()
80 if (rhs.y + rhs.h > y + h) h = (rhs.y + rhs.h) - y; in add()