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

Start poking at a TerminalWidget.

This commit is contained in:
Andreas Kling 2018-10-11 02:50:08 +02:00
parent f337616741
commit c61cbf4234
4 changed files with 106 additions and 4 deletions

View file

@ -3,6 +3,7 @@
#include "RootWidget.h"
#include "Label.h"
#include "Button.h"
#include "TerminalWidget.h"
#include <cstdio>
int main(int c, char** v)
@ -31,13 +32,11 @@ int main(int c, char** v)
l4->setRect(Rect(100, 160, 300, 20));
l4->setText("!\"#$%&'()*+,-./:;<=>?@[\\]^_{|}~");
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!");
auto* t = new TerminalWidget(&w);
return loop.exec();
}