diff options
feat: Implement base Screen object
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | src/Screen.cpp | 17 |
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; +} |