summaryrefslogtreecommitdiffstats
path: root/wgpu/src/primitive.rs
blob: 91cdfc8560712c6e6f7331b01a12848e1c5311e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use iced_native::{Color, Rectangle};

#[derive(Debug, Clone)]
pub enum Primitive {
    None,
    Group {
        primitives: Vec<Primitive>,
    },
    Text {
        content: String,
        bounds: Rectangle,
        size: f32,
    },
    Quad {
        bounds: Rectangle,
        background: Background,
    },
}

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Background {
    Color(Color),
}