Lines Matching defs:DesktopRect
78 class DesktopRect {
80 static DesktopRect MakeSize(const DesktopSize& size) {
81 return DesktopRect(0, 0, size.width(), size.height());
83 static DesktopRect MakeWH(int32_t width, int32_t height) {
84 return DesktopRect(0, 0, width, height);
86 static DesktopRect MakeXYWH(int32_t x, int32_t y,
88 return DesktopRect(x, y, x + width, y + height);
90 static DesktopRect MakeLTRB(int32_t left, int32_t top,
92 return DesktopRect(left, top, right, bottom);
94 static DesktopRect MakeOriginSize(const DesktopVector& origin,
99 DesktopRect() : left_(0), top_(0), right_(0), bottom_(0) {}
113 bool equals(const DesktopRect& other) const {
122 bool ContainsRect(const DesktopRect& rect) const;
125 void IntersectWith(const DesktopRect& rect);
132 DesktopRect(int32_t left, int32_t top, int32_t right, int32_t bottom)