1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

[demo] Alwyas start with widget gallery

This commit is contained in:
Emil Ernerfeldt
2021-02-20 09:18:23 +01:00
parent 0f13fff24b
commit 9e38674d13
14 changed files with 50 additions and 30 deletions

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);