mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +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()
|
|
{
|
|
}
|
|
|