mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 15:20:05 -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:
@@ -87,13 +87,13 @@ impl egui::Plugin for AccessibilityInspectorPlugin {
|
||||
|
||||
ui.enable_accesskit();
|
||||
|
||||
Panel::right(Self::id()).show_inside(ui, |ui| {
|
||||
Panel::right(Self::id()).show(ui, |ui| {
|
||||
ui.heading("🔎 AccessKit Inspector");
|
||||
if let Some(selected_node) = self.selected_node {
|
||||
Panel::bottom(Self::id().with("details_panel"))
|
||||
.frame(Frame::new())
|
||||
.show_separator_line(false)
|
||||
.show_inside(ui, |ui| {
|
||||
.show(ui, |ui| {
|
||||
self.selection_ui(ui, selected_node);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user