mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 06:45:07 +00:00
LibGUI: Convert GWidget to ObjectPtr
This commit is contained in:
parent
e4e92980a1
commit
ff6ce422dd
41 changed files with 115 additions and 107 deletions
|
@ -13,7 +13,7 @@ int main(int argc, char** argv)
|
|||
window->set_rect(100, 100, 240, 160);
|
||||
window->set_title("Hello World!");
|
||||
|
||||
auto* main_widget = new GWidget;
|
||||
auto main_widget = GWidget::construct();
|
||||
window->set_main_widget(main_widget);
|
||||
main_widget->set_fill_with_background_color(true);
|
||||
main_widget->set_background_color(Color::White);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue