summaryrefslogtreecommitdiffstats
path: root/wgpu/src/primitive.rs
blob: e9ab100eb2214e56cd75c46d30ec84b7f71221ac (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,
    },
    Box {
        bounds: Rectangle,
        background: Background,
    },
}

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