summaryrefslogtreecommitdiff
path: root/src/point.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-08-06 18:47:30 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2008-08-06 18:47:30 +0200
commitb818e224418ec8883c076ec3f39e4943e3b09d3a (patch)
treeebb0308d1e9012a7f6b54d5aca937e0ce99a97f9 /src/point.cpp
parent84fbdc90df2b2a53dd94cae3d1f51a012ac42c49 (diff)
downloadunity-window-decorator-b818e224418ec8883c076ec3f39e4943e3b09d3a.tar.gz
unity-window-decorator-b818e224418ec8883c076ec3f39e4943e3b09d3a.tar.bz2
Added new CompSize, CompPoint and CompWindow::Geometry classes.
Diffstat (limited to 'src/point.cpp')
-rw-r--r--src/point.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/point.cpp b/src/point.cpp
new file mode 100644
index 0000000..5eda20b
--- /dev/null
+++ b/src/point.cpp
@@ -0,0 +1,37 @@
+#include <comppoint.h>
+
+CompPoint::CompPoint () :
+ mX (0),
+ mY (0)
+{
+}
+
+CompPoint::CompPoint (int x, int y) :
+ mX (x),
+ mY (y)
+{
+}
+
+int
+CompPoint::x ()
+{
+ return mX;
+}
+
+int
+CompPoint::y ()
+{
+ return mY;
+}
+
+void
+CompPoint::setX (int x)
+{
+ mX = x;
+}
+
+void
+CompPoint::setY (int y)
+{
+ mY = y;
+}