Deprecate Ui::allocate_new_ui in favor of Ui::scope_builder (#5764)

They had the same signature and slightly different implementations, now
it's streamlined
This commit is contained in:
lucasmerlin
2025-03-05 12:08:43 +01:00
committed by GitHub
parent 1dea8fac9b
commit 962c7c7516
5 changed files with 14 additions and 28 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ fn title_bar_ui(ui: &mut egui::Ui, title_bar_rect: eframe::epaint::Rect, title:
ui.ctx().send_viewport_cmd(ViewportCommand::StartDrag);
}
ui.allocate_new_ui(
ui.scope_builder(
UiBuilder::new()
.max_rect(title_bar_rect)
.layout(egui::Layout::right_to_left(egui::Align::Center)),