summaryrefslogtreecommitdiff
path: root/src/rect.cpp
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-07-23 19:41:29 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-07-23 19:41:29 -0500
commit3cfa58a22f12820e41f93e6176d923b340e8654c (patch)
treeab9cedf4ce0a1fe29dcbda9120ed0f32394dab59 /src/rect.cpp
parent20e07404c9b60a2e0c5703e2b848dc4bdcb19e1a (diff)
downloadunity-window-decorator-3cfa58a22f12820e41f93e6176d923b340e8654c.tar.gz
unity-window-decorator-3cfa58a22f12820e41f93e6176d923b340e8654c.tar.bz2
Add CompRect::operator= ().
Diffstat (limited to 'src/rect.cpp')
-rw-r--r--src/rect.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rect.cpp b/src/rect.cpp
index b64addf..ddbc9a8 100644
--- a/src/rect.cpp
+++ b/src/rect.cpp
@@ -271,3 +271,15 @@ CompRect::operator&= (const CompRect &rect)
return *this;
}
+
+CompRect &
+CompRect::operator= (const CompRect &rect)
+{
+ mRegion.extents.x1 = rect.mRegion.extents.x1;
+ mRegion.extents.y1 = rect.mRegion.extents.y1;
+ mRegion.extents.x2 = rect.mRegion.extents.x2;
+ mRegion.extents.y2 = rect.mRegion.extents.y2;
+
+ return *this;
+}
+