diagram_panel.rs

This commit is contained in:
Martin Kavík 2024-10-07 20:44:37 +02:00
parent d291e84f61
commit c1b0eb33bf
2 changed files with 84 additions and 38 deletions

View file

@ -0,0 +1,24 @@
use zoon::*;
#[derive(Clone)]
pub struct DiagramPanel {
}
impl DiagramPanel {
pub fn new(
) -> impl Element {
Self {
}
.root()
}
fn root(&self) -> impl Element {
Column::new()
.s(Padding::all(20))
.s(Scrollbars::y_and_clip_x())
.s(Width::fill())
.s(Height::fill())
.s(Gap::new().y(20))
.item("Diagram panel")
}
}