1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 15:05:08 +00:00

PaintBrush: Start working on a simple painting application.

This commit is contained in:
Andreas Kling 2019-06-10 19:29:33 +02:00
parent 63f029ef9b
commit d599544890
6 changed files with 114 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#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();
}