mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
19 lines
424 B
C++
19 lines
424 B
C++
|
|
#include "PaintableWidget.h"
|
||
|
|
#include <LibGUI/GApplication.h>
|
||
|
|
#include <LibGUI/GWindow.h>
|
||
|
|
|
||
|
|
int main(int argc, char** argv)
|
||
|
|
{
|
||
|
|
GApplication app(argc, argv);
|
||
|
|
|
||
|
|
auto* window = new GWindow;
|
||
|
|
window->set_title("PaintBrush");
|
||
|
|
window->set_rect(100, 100, 600, 400);
|
||
|
|
|
||
|
|
auto* paintable_widget = new PaintableWidget(nullptr);
|
||
|
|
window->set_main_widget(paintable_widget);
|
||
|
|
|
||
|
|
window->show();
|
||
|
|
return app.exec();
|
||
|
|
}
|