1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

Start working on a Widgets library.

This commit is contained in:
Andreas Kling 2018-10-10 15:12:38 +02:00
parent a181a8f6e7
commit 8c84f9749e
18 changed files with 594 additions and 0 deletions

25
Widgets/AbstractScreen.h Normal file
View file

@ -0,0 +1,25 @@
#pragma once
class Widget;
class AbstractScreen {
public:
virtual ~AbstractScreen();
unsigned width() const { return m_width; }
unsigned height() const { return m_height; }
void setRootWidget(Widget*);
static AbstractScreen& the();
protected:
AbstractScreen(unsigned width, unsigned height);
private:
unsigned m_width { 0 };
unsigned m_height { 0 };
Widget* m_rootWidget { nullptr };
};