2019-10-06 19:22:25 +02:00
|
|
|
use iced_native::{Color, Rectangle};
|
2019-10-05 19:22:51 +02:00
|
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
|
pub enum Primitive {
|
|
|
|
|
None,
|
|
|
|
|
Group {
|
|
|
|
|
primitives: Vec<Primitive>,
|
|
|
|
|
},
|
|
|
|
|
Text {
|
|
|
|
|
content: String,
|
|
|
|
|
bounds: Rectangle,
|
|
|
|
|
size: f32,
|
|
|
|
|
},
|
2019-10-06 19:22:25 +02:00
|
|
|
Box {
|
|
|
|
|
bounds: Rectangle,
|
|
|
|
|
background: Background,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
|
|
|
|
pub enum Background {
|
|
|
|
|
Color(Color),
|
2019-10-05 19:22:51 +02:00
|
|
|
}
|