/// Show the app ui (menu bar and windows).
/// `sidebar_ui` can be used to optionally show some things in the sidebar
Show the app ui (menu bar and windows).
`sidebar_ui` can be used to optionally show some things in the sidebar
Show the app ui ( menu bar and windows ) . ` sidebar_ui ` can be used to optionally show some things in the sidebar
pub fn ui(&mut self, ctx: &CtxRef) {
        egui::SidePanel::left("side_panel", 200.0).show(ctx, |ui| {
            ui.heading("✒ Egui Demo");
            ui.separator();
            ScrollArea::auto_sized().show(ui, |ui| {
                ui.label("Egui is an immediate mode GUI library written in Rust.");
                ui.add(
                    egui::Hyperlink::new("https://github.com/emilk/egui").text(" Egui home page"),
                );
                ui.label("Egui can be run on the web, or natively on 🐧");
                ui.separator();
                ui.heading("Windows:");
                ui.indent("windows", |ui| {
                    self.open_windows.checkboxes(ui);
                    self.demos.checkboxes(ui);
                });
                ui.separator();
                if ui.button("Organize windows").clicked {
                    ui.ctx().memory().reset_areas();
                }
            });
        });
        egui::TopPanel::top("menu_bar").show(ctx, |ui| {
            show_menu_bar(ui);
        });
        self.windows(ctx);
    }
pub fn ui ( & mut self , ctx : & CtxRef ) { egui :: SidePanel :: left ( " " , 200.0 ) . show ( ctx , | ui | { ui . heading ( " ; ui . separator ( ) ; ScrollArea :: auto_sized ( ) . show ( ui , | ui | { ui . label ( " " ) ; ui . add ( egui :: Hyperlink :: new ( " " ) . text ( " , ) ; ui . label ( " ui . separator ( ) ; ui . heading ( " " ) ; ui . indent ( " " , | ui | { self . open_windows . checkboxes ( ui ) ; self . demos . checkboxes ( ui ) ; } ) ; ui . separator ( ) ; if ui . button ( " " ) . clicked { ui . ctx ( ) . memory ( ) . reset_areas ( ) ; } } ) ; } ) ; egui :: TopPanel :: top ( " " ) . show ( ctx , | ui | { show_menu_bar ( ui ) ; } ) ; self . windows ( ctx ) ; }
Show the app ui (menu bar and windows).
Show the app ui ( menu bar and windows ) .
&mut self
ctx
&CtxRef