summaryrefslogtreecommitdiff
path: root/src/size.cpp
diff options
context:
space:
mode:
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;
+}