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:
parent
aee66e0119
commit
f337616741
15 changed files with 135 additions and 19 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue