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

Add a VERY experimental markdown viewer

This commit is contained in:
Emil Ernerfeldt
2021-01-27 20:14:53 +01:00
parent 7d8ebb4c8f
commit 6029a438a2
9 changed files with 300 additions and 12 deletions

View File

@@ -1,9 +1,9 @@
#[derive(Default)]
pub struct Tests {}
pub struct IdTest {}
impl super::Demo for Tests {
impl super::Demo for IdTest {
fn name(&self) -> &str {
"📋 Tests"
"📋 ID Test"
}
fn show(&mut self, ctx: &egui::CtxRef, open: &mut bool) {
@@ -14,7 +14,7 @@ impl super::Demo for Tests {
}
}
impl super::View for Tests {
impl super::View for IdTest {
fn ui(&mut self, ui: &mut egui::Ui) {
ui.heading("Name collision example");