better element structure

This commit is contained in:
2024-11-30 21:00:02 +01:00
parent 71d10bc331
commit 1eef3d4306
6 changed files with 64 additions and 19 deletions
+2
View File
@@ -80,6 +80,7 @@ pub struct StyleElement {
pub y: Number,
pub width: Number,
pub height: Number,
pub visible: bool,
pub other: HashMap<String, Box<dyn StyleCore>>,
}
@@ -141,6 +142,7 @@ impl Default for StyleElement {
y: Number::Default,
width: Number::Default,
height: Number::Default,
visible: true,
other: HashMap::new(),
}
}