Line | Count | Source |
1 | | /* |
2 | | * Copyright (C) 2008 Emweb bv, Herent, Belgium. |
3 | | * |
4 | | * See the LICENSE file for terms of use. |
5 | | */ |
6 | | |
7 | | #include "Wt/WPoint.h" |
8 | | |
9 | | namespace Wt { |
10 | | |
11 | | WPoint::WPoint() |
12 | 0 | : x_(0), y_(0) |
13 | 0 | { } |
14 | | |
15 | | bool WPoint::operator== (const WPoint& other) const |
16 | 0 | { |
17 | 0 | return (x_ == other.x_) && (y_ == other.y_); |
18 | 0 | } |
19 | | |
20 | | bool WPoint::operator!= (const WPoint& other) const |
21 | 0 | { |
22 | 0 | return !(*this == other); |
23 | 0 | } |
24 | | |
25 | | WPoint& WPoint::operator+= (const WPoint& other) |
26 | 0 | { |
27 | 0 | x_ += other.x_; |
28 | 0 | y_ += other.y_; |
29 | |
|
30 | 0 | return *this; |
31 | 0 | } |
32 | | |
33 | | } |