summaryrefslogtreecommitdiff
path: root/src/types/mod.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-09-19 23:26:22 +0200
committerpml68 <contact@pml68.me>2024-09-22 23:55:11 +0200
commit71743cb18fbb69430d092df59a722f5995be31c3 (patch)
tree707e4a8076085623b2bb3bcf2ec8ef1054f1bdf2 /src/types/mod.rs
parentfeat: finish codegen with limited props and elements (diff)
downloadiced-builder-71743cb18fbb69430d092df59a722f5995be31c3.tar.gz
feat: rework props
w
Diffstat (limited to 'src/types/mod.rs')
-rw-r--r--src/types/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types/mod.rs b/src/types/mod.rs
index 1fa23d4..c837ee1 100644
--- a/src/types/mod.rs
+++ b/src/types/mod.rs
@@ -1,4 +1,3 @@
-pub mod props;
pub mod rendered_element;
use iced::widget::text_editor;
@@ -10,9 +9,10 @@ pub struct DesignerState {
pub designer_page: DesignerPage,
}
+#[derive(Debug)]
pub enum ElementName {
- Text(String),
- Button(String),
+ Text(&'static str),
+ Button(&'static str),
TextEditor(text_editor::Content),
SVG(PathBuf),
Image(PathBuf),