summaryrefslogtreecommitdiff
path: root/src/windowgeometry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/windowgeometry.cpp')
-rw-r--r--src/windowgeometry.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/windowgeometry.cpp b/src/windowgeometry.cpp
new file mode 100644
index 0000000..aa94487
--- /dev/null
+++ b/src/windowgeometry.cpp
@@ -0,0 +1,29 @@
+#include <compwindow.h>
+
+
+CompWindow::Geometry::Geometry () :
+ mBorder (0)
+{
+}
+
+CompWindow::Geometry::Geometry (int x, int y,
+ unsigned int width,
+ unsigned int height,
+ unsigned int border) :
+ mBorder (border)
+{
+ CompPoint::CompPoint (x,y);
+ CompSize::CompSize (width, height);
+}
+
+unsigned int
+CompWindow::Geometry::border ()
+{
+ return mBorder;
+}
+
+void
+CompWindow::Geometry::setBorder (unsigned int border)
+{
+ mBorder = border;
+}