mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
Intense hacking on Widgets.
This commit is contained in:
parent
8c84f9749e
commit
6f37429f57
20 changed files with 290 additions and 5 deletions
|
@ -1,14 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include "Object.h"
|
||||
|
||||
class Widget;
|
||||
|
||||
class AbstractScreen {
|
||||
class AbstractScreen : public Object {
|
||||
public:
|
||||
virtual ~AbstractScreen();
|
||||
|
||||
unsigned width() const { return m_width; }
|
||||
unsigned height() const { return m_height; }
|
||||
|
||||
Widget* rootWidget() { return m_rootWidget; }
|
||||
void setRootWidget(Widget*);
|
||||
|
||||
static AbstractScreen& the();
|
||||
|
@ -17,6 +20,8 @@ protected:
|
|||
AbstractScreen(unsigned width, unsigned height);
|
||||
|
||||
private:
|
||||
virtual void event(Event&) override;
|
||||
|
||||
unsigned m_width { 0 };
|
||||
unsigned m_height { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue