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

More hacking on Widgets.

This commit is contained in:
Andreas Kling 2018-10-11 16:52:40 +02:00
parent c37ded0ae4
commit a4491e9630
9 changed files with 150 additions and 2 deletions

View file

@ -4,6 +4,7 @@
#include "Label.h"
#include "Button.h"
#include "TerminalWidget.h"
#include "WindowManager.h"
#include <cstdio>
int main(int c, char** v)
@ -16,6 +17,8 @@ int main(int c, char** v)
RootWidget w;
fb.setRootWidget(&w);
WindowManager::the();
auto* l1 = new Label(&w);
l1->setRect(Rect(100, 100, 300, 20));
l1->setText("0123456789");
@ -37,6 +40,7 @@ int main(int c, char** v)
b->setCaption("Button!");
auto* t = new TerminalWidget(&w);
t->setWindowTitle("Console");
return loop.exec();
}