mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 01:48:11 +00:00
24 lines
442 B
C++
24 lines
442 B
C++
#pragma once
|
|
|
|
#include "Object.h"
|
|
#include "Rect.h"
|
|
|
|
class AbstractScreen : public Object {
|
|
public:
|
|
virtual ~AbstractScreen();
|
|
|
|
int width() const { return m_width; }
|
|
int height() const { return m_height; }
|
|
|
|
static AbstractScreen& the();
|
|
|
|
Rect rect() const { return { 0, 0, width(), height() }; }
|
|
|
|
protected:
|
|
AbstractScreen(unsigned width, unsigned height);
|
|
|
|
private:
|
|
int m_width { 0 };
|
|
int m_height { 0 };
|
|
};
|
|
|