mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Rename Panel methods (#8192)
The three methods for showing a `Panel` are now: * `panel.show`: always show the panel. * `panel.show_collapsible`: show or hide the panel, with a slide animation in between. * `Panel::show_switched`: animate between two different panels: a thin/collapsed one and a thick/expanded one.
This commit is contained in:
@@ -41,11 +41,11 @@ impl eframe::App for MyApp {
|
||||
// TODO(lucasmerlin): This is a pretty big hack, should be fixed once safe_area implemented
|
||||
// for android:
|
||||
// https://github.com/rust-windowing/winit/issues/3910
|
||||
egui::Panel::top("status_bar_space").show_inside(ui, |ui| {
|
||||
egui::Panel::top("status_bar_space").show(ui, |ui| {
|
||||
ui.set_height(32.0);
|
||||
});
|
||||
|
||||
egui::CentralPanel::default().show_inside(ui, |ui| {
|
||||
egui::CentralPanel::default().show(ui, |ui| {
|
||||
self.demo.ui(ui);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user