summaryrefslogtreecommitdiff
path: root/src/point.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-02 13:03:10 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-02 13:03:10 +0100
commitfd10829f3eeba6193328eceedf84250f53d9b317 (patch)
treedbc6c3d95f3d2524706e5be7e1ddce9fbd80492a /src/point.cpp
parentede70ffda1c3bd430729a34135fd92f5e2b095e0 (diff)
downloadunity-window-decorator-fd10829f3eeba6193328eceedf84250f53d9b317.tar.gz
unity-window-decorator-fd10829f3eeba6193328eceedf84250f53d9b317.tar.bz2
Added equality operator to CompPoint.
Diffstat (limited to 'src/point.cpp')
-rw-r--r--src/point.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/point.cpp b/src/point.cpp
index 2986c4a..9b3d9f3 100644
--- a/src/point.cpp
+++ b/src/point.cpp
@@ -48,3 +48,15 @@ CompPoint::setY (int y)
{
mY = y;
}
+
+bool
+CompPoint::operator== (const CompPoint &point) const
+{
+ return (mX == point.mX) && (mY == point.mY);
+}
+
+bool
+CompPoint::operator!= (const CompPoint &point) const
+{
+ return !(*this == point);
+}