mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
27 lines
442 B
C++
27 lines
442 B
C++
#include "AbstractScreen.h"
|
|
#include "EventLoop.h"
|
|
#include "Event.h"
|
|
#include "Widget.h"
|
|
#include <AK/Assertions.h>
|
|
|
|
static AbstractScreen* s_the;
|
|
|
|
AbstractScreen& AbstractScreen::the()
|
|
{
|
|
ASSERT(s_the);
|
|
return *s_the;
|
|
}
|
|
|
|
AbstractScreen::AbstractScreen(unsigned width, unsigned height)
|
|
: Object(nullptr)
|
|
, m_width(width)
|
|
, m_height(height)
|
|
{
|
|
ASSERT(!s_the);
|
|
s_the = this;
|
|
}
|
|
|
|
AbstractScreen::~AbstractScreen()
|
|
{
|
|
}
|
|
|