Lines Matching refs:Point
16 typedef struct tagPOINT POINT;
23 // A point has an x and y coordinate.
24 class UI_EXPORT Point {
26 Point();
27 Point(int x, int y);
29 // |point| is a DWORD value that contains a coordinate. The x-coordinate is
32 explicit Point(DWORD point);
33 explicit Point(const POINT& point);
34 Point& operator=(const POINT& point);
36 explicit Point(const CGPoint& point);
39 ~Point() {}
57 Point Add(const Point& other) const{
58 Point copy = *this;
63 Point Subtract(const Point& other) const {
64 Point copy = *this;
69 Point Middle(const Point& other) const {
70 return Point((x_ + other.x_) / 2, (y_ + other.y_) / 2);
73 bool operator==(const Point& rhs) const {
77 bool operator!=(const Point& rhs) const {
81 // A point is less than another point if its y-value is closer
82 // to the origin. If the y-values are the same, then point with
87 bool operator<(const Point& rhs) const {
92 POINT ToPOINT() const;
97 // Returns a string representation of point.