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:
parent
63f029ef9b
commit
d599544890
6 changed files with 114 additions and 0 deletions
18
Applications/PaintBrush/main.cpp
Normal file
18
Applications/PaintBrush/main.cpp
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue