1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

VisualBuilder: Add a properties window.

This commit is contained in:
Andreas Kling 2019-04-11 15:43:26 +02:00
parent 93b76628a5
commit ba4a726e8b

View file

@ -13,6 +13,7 @@
#include <fcntl.h>
static GWindow* make_toolbox_window();
static GWindow* make_properties_window();
int main(int argc, char** argv)
{
@ -52,6 +53,9 @@ int main(int argc, char** argv)
auto* toolbox = make_toolbox_window();
toolbox->show();
auto* propbox = make_properties_window();
propbox->show();
return app.exec();
}
@ -125,3 +129,17 @@ GWindow* make_toolbox_window()
};
return window;
}
GWindow* make_properties_window()
{
auto* window = new GWindow;
window->set_title("Properties");
window->set_rect(780, 200, 200, 280);
auto* widget = new GWidget;
widget->set_fill_with_background_color(true);
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
window->set_main_widget(widget);
return window;
}