1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

[demo] Link to the egui docs from the widget gallery

This commit is contained in:
Emil Ernerfeldt
2021-02-20 12:07:15 +01:00
parent 040553da78
commit 6354709fe1
2 changed files with 158 additions and 116 deletions

View File

@@ -92,3 +92,7 @@ fn toggle_ui_compact(ui: &mut egui::Ui, on: &mut bool) -> egui::Response {
pub fn toggle(on: &mut bool) -> impl egui::Widget + '_ {
move |ui: &mut egui::Ui| toggle_ui(ui, on)
}
pub fn url_to_file_source_code() -> String {
format!("https://github.com/emilk/egui/blob/master/{}", file!())
}