summaryrefslogtreecommitdiff
path: root/src/size.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/size.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/size.cpp')
-rw-r--r--src/size.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/size.cpp b/src/size.cpp
new file mode 100644
index 0000000..63cd83a
--- /dev/null
+++ b/src/size.cpp
@@ -0,0 +1,37 @@
+#include <compsize.h>
+
+CompSize::CompSize () :
+ mWidth (0),
+ mHeight (0)
+{
+}
+
+CompSize::CompSize (unsigned int width, unsigned int height) :
+ mWidth (width),
+ mHeight (height)
+{
+}
+
+unsigned int
+CompSize::width ()
+{
+ return mWidth;
+}
+
+unsigned int
+CompSize::height ()
+{
+ return mHeight;
+}
+
+void
+CompSize::setWidth (unsigned int width)
+{
+ mWidth = width;
+}
+
+void
+CompSize::setHeight (unsigned int height)
+{
+ mHeight = height;
+}