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
c37ded0ae4
commit
a4491e9630
9 changed files with 150 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue