mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
Move windowing stuff from AbstractScreen to WindowManager.
This commit is contained in:
parent
415c4b90c5
commit
02f4d6ef8e
6 changed files with 59 additions and 58 deletions
|
@ -16,9 +16,7 @@ int main(int c, char** v)
|
|||
EventLoopSDL loop;
|
||||
|
||||
RootWidget w;
|
||||
fb.setRootWidget(&w);
|
||||
|
||||
WindowManager::the();
|
||||
WindowManager::the().setRootWidget(&w);
|
||||
|
||||
auto* l1 = new Label(&w);
|
||||
l1->setRect(Rect(100, 100, 300, 20));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue