Lines Matching refs:DesktopVector
20 class DesktopVector {
22 DesktopVector() : x_(0), y_(0) {} in DesktopVector() function
23 DesktopVector(int32_t x, int32_t y) : x_(x), y_(y) {} in DesktopVector() function
29 bool equals(const DesktopVector& other) const { in equals()
38 DesktopVector add(const DesktopVector& other) const { in add()
39 return DesktopVector(x() + other.x(), y() + other.y()); in add()
41 DesktopVector subtract(const DesktopVector& other) const { in subtract()
42 return DesktopVector(x() - other.x(), y() - other.y()); in subtract()
94 static DesktopRect MakeOriginSize(const DesktopVector& origin, in MakeOriginSize()
108 DesktopVector top_left() const { return DesktopVector(left_, top_); } in top_left()
119 bool Contains(const DesktopVector& point) const;
129 void Translate(DesktopVector d) { Translate(d.x(), d.y()); }; in Translate()