summaryrefslogtreecommitdiff
path: root/src/rect.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-09-17 20:48:31 +0200
committerDennis Kasprzyk <onestone@compiz-fusion.org>2008-09-17 20:48:31 +0200
commit1153a9ee1459576b9a26ccdc0c3d923f7b24019a (patch)
tree7b7e12b3347315540e70cd691db6b840252e92f9 /src/rect.cpp
parente73a1df3bf2a5871a2c7fd1a97d3e1a961cfd96b (diff)
downloadunity-window-decorator-1153a9ee1459576b9a26ccdc0c3d923f7b24019a.tar.gz
unity-window-decorator-1153a9ee1459576b9a26ccdc0c3d923f7b24019a.tar.bz2
Optimize rect,point and size classes and move headers to core/*
Diffstat (limited to 'src/rect.cpp')
-rw-r--r--src/rect.cpp50
1 files changed, 1 insertions, 49 deletions
diff --git a/src/rect.cpp b/src/rect.cpp
index e8769ef..52d1608 100644
--- a/src/rect.cpp
+++ b/src/rect.cpp
@@ -1,5 +1,5 @@
#include <compiz-core.h>
-#include <comprect.h>
+#include <core/rect.h>
CompRect::CompRect ()
{
@@ -27,54 +27,6 @@ CompRect::CompRect (const CompRect& r)
mRegion.rects = &mRegion.extents;
}
-int
-CompRect::x ()
-{
- return mRegion.extents.x1;
-}
-
-int
-CompRect::y ()
-{
- return mRegion.extents.y1;
-}
-
-int
-CompRect::x1 ()
-{
- return mRegion.extents.x1;
-}
-
-int
-CompRect::y1 ()
-{
- return mRegion.extents.y1;
-}
-
-int
-CompRect::x2 ()
-{
- return mRegion.extents.x2;
-}
-
-int
-CompRect::y2 ()
-{
- return mRegion.extents.y2;
-}
-
-unsigned int
-CompRect::width ()
-{
- return mRegion.extents.x2 - mRegion.extents.x1;
-}
-
-unsigned int
-CompRect::height ()
-{
- return mRegion.extents.y2 - mRegion.extents.y1;
-}
-
Region
CompRect::region ()
{