summaryrefslogtreecommitdiff
path: root/src/types/mod.rs
blob: 69df615ffca5dff01c62fecd791b1189fe5d6d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use iced::{Font, Length};

pub struct DesignerState {
    pub designer_content: Vec<RenderedElement>,
    pub designer_page: DesignerPage,
}

pub struct RenderedElement {
    pub id: String,
    pub children: Vec<RenderedElement>,
    pub name: ElementName,
    pub props: Vec<Prop>,
}

pub enum ElementName {}

pub enum Prop {
    String(String, String),
    Decimal(String, i32),
    Float(String, f32),
    Font(String, Font),
    Length(String, Length),
}

pub enum DesignerPage {
    Designer,
    CodeView,
}