blob: 840d94720f156e06115f27c16a6ddb3d4021c236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "Object.h"
#include "Rect.h"
class AbstractScreen : public Object {
public:
virtual ~AbstractScreen();
unsigned width() const { return m_width; }
unsigned height() const { return m_height; }
static AbstractScreen& the();
Rect rect() const { return { 0, 0, width(), height() }; }
protected:
AbstractScreen(unsigned width, unsigned height);
private:
unsigned m_width { 0 };
unsigned m_height { 0 };
};
|