fn show(&mut self, ctx: &CtxRef, memory: &Memory) -> ShowResult {
        let mut open = self.is_open();
        let mut result = ShowResult::None;

        egui::Window::new(Self::NAME)
            .open(&mut open)
            .resizable(false)
            .show(ctx, |ui| {
                self.build(ui, memory);
                ui.add(OkReset::new(&mut result));
            });

        if open {
            self.open();
            result
        } else {
            ShowResult::Close
        }
    }
/// Shows the window on screen.
Shows the window on screen.
Shows the window on screen .
fn show(&mut self, ctx: &CtxRef, memory: &Memory) -> ShowResult {
        let mut open = self.is_open();
        let mut result = ShowResult::None;
        egui::Window::new(Self::NAME)
            .open(&mut open)
            .resizable(false)
            .show(ctx, |ui| {
                self.build(ui, memory);
                ui.add(OkReset::new(&mut result));
            });
        if open {
            self.open();
            result
        } else {
            ShowResult::Close
        }
    }
fn show ( & mut self , ctx : & CtxRef , memory : & Memory ) -> ShowResult { let mut open = self . is_open ( ) ; let mut result = ShowResult :: None ; egui :: Window :: new ( Self :: NAME ) . open ( & mut open ) . resizable ( false ) . show ( ctx , | ui | { self . build ( ui , memory ) ; ui . add ( OkReset :: new ( & mut result ) ) ; } ) ; if open { self . open ( ) ; result } else { ShowResult :: Close } }
Shows the window on screen.
Shows the window on screen .
&mut self
ctx
&CtxRef
memory
&Memory