[demo] Alwyas start with widget gallery

This commit is contained in:
Emil Ernerfeldt
2021-02-20 09:19:40 +01:00
parent 0f13fff24b
commit 9e38674d13
14 changed files with 50 additions and 30 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ pub trait View {
/// Something to view
pub trait Demo {
fn name(&self) -> &str;
/// `&'static` so we can also use it as a key to store open/close state.
fn name(&self) -> &'static str;
/// Show windows, etc
fn show(&mut self, ctx: &egui::CtxRef, open: &mut bool);