Summary Files Commits Branches @commit @diff @stats
path: root / src / Screen.cpp
diff options
context:
space:
mode:
1 files changed, 17 insertions, 0 deletions
-rw-r--r--src/Screen.cpp17
diff --git a/src/Screen.cpp b/src/Screen.cpp
new file mode 100644
index 0000000..3ff3183
--- /dev/null
+++ b/src/Screen.cpp
@@ -0,0 +1,17 @@
+#include "Screen.h"
+
+Screen::Screen(mm width, mm height) : width(width), height(height) { }
+
+Screen::~Screen() { }
+
+mm Screen::getHeight() const {
+ return this->height;
+}
+
+mm Screen::getWidth() const {
+ return this->width;
+}
+
+std::ostream& operator<<(std::ostream& ostr, const Screen& screen) {
+ return ostr << "Screen: " << screen.width << "x" << screen.height;
+}