mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibGUI: Add GHBoxLayout and GVBoxLayout convenience classes
This commit is contained in:
parent
63364f8a5d
commit
d67da8c101
50 changed files with 128 additions and 114 deletions
|
@ -60,13 +60,13 @@ int main(int argc, char** argv)
|
|||
|
||||
auto horizontal_container = GWidget::construct();
|
||||
window->set_main_widget(horizontal_container);
|
||||
horizontal_container->set_layout(make<GBoxLayout>(Orientation::Horizontal));
|
||||
horizontal_container->set_layout(make<GHBoxLayout>());
|
||||
horizontal_container->layout()->set_spacing(0);
|
||||
|
||||
new ToolboxWidget(horizontal_container);
|
||||
|
||||
auto vertical_container = GWidget::construct(horizontal_container.ptr());
|
||||
vertical_container->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
vertical_container->set_layout(make<GVBoxLayout>());
|
||||
vertical_container->layout()->set_spacing(0);
|
||||
|
||||
auto paintable_widget = PaintableWidget::construct(vertical_container);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue