1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

Move windowing stuff from AbstractScreen to WindowManager.

This commit is contained in:
Andreas Kling 2018-10-12 01:10:16 +02:00
parent 415c4b90c5
commit 02f4d6ef8e
6 changed files with 59 additions and 58 deletions

View file

@ -2,8 +2,6 @@
#include "Object.h"
class Widget;
class AbstractScreen : public Object {
public:
virtual ~AbstractScreen();
@ -11,20 +9,13 @@ public:
unsigned width() const { return m_width; }
unsigned height() const { return m_height; }
Widget* rootWidget() { return m_rootWidget; }
void setRootWidget(Widget*);
static AbstractScreen& the();
protected:
AbstractScreen(unsigned width, unsigned height);
private:
virtual void event(Event&) override;
unsigned m_width { 0 };
unsigned m_height { 0 };
Widget* m_rootWidget { nullptr };
};