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 01:48:09 +02:00
parent aee66e0119
commit f337616741
15 changed files with 135 additions and 19 deletions

View file

@ -2,6 +2,7 @@
#include "EventLoopSDL.h"
#include "RootWidget.h"
#include "Label.h"
#include "Button.h"
#include <cstdio>
int main(int c, char** v)
@ -30,7 +31,13 @@ int main(int c, char** v)
l4->setRect(Rect(100, 160, 300, 20));
l4->setText("!\"#$%&'()*+,-./:;<=>?@[\\]^_{|}~");
//l5->setText("Welcome to the Serenity Operating System");
auto* l5 = new Label(&w);
l5->setRect(Rect(200, 200, 400, 50));
l5->setText("Welcome to the Serenity Operating System");
auto* b = new Button(&w);
b->setRect(Rect(10, 10, 100, 30));
b->setCaption("Button!");
return loop.exec();
}