mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 22:31:29 +03:00
25 lines
462 B
C++
25 lines
462 B
C++
#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 };
|
|
};
|
|
|