mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -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:
@@ -271,7 +271,7 @@ fn keyboard_submenu_harness() -> Harness<'static, bool> {
|
||||
.with_size(Vec2::new(400.0, 240.0))
|
||||
.build_ui_state(
|
||||
|ui, checked| {
|
||||
egui::Panel::top("menu_bar").show_inside(ui, |ui| {
|
||||
egui::Panel::top("menu_bar").show(ui, |ui| {
|
||||
egui::MenuBar::new().ui(ui, |ui| {
|
||||
ui.menu_button("X", |ui| {
|
||||
ui.menu_button("Y", |ui| {
|
||||
|
||||
Reference in New Issue
Block a user