diff options
Diffstat (limited to '')
-rw-r--r-- | wgpu/src/primitive.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs new file mode 100644 index 00000000..0b9e2c41 --- /dev/null +++ b/wgpu/src/primitive.rs @@ -0,0 +1,26 @@ +use iced_native::{text, Background, Color, Rectangle}; + +#[derive(Debug, Clone)] +pub enum Primitive { + None, + Group { + primitives: Vec<Primitive>, + }, + Text { + content: String, + bounds: Rectangle, + color: Color, + size: f32, + horizontal_alignment: text::HorizontalAlignment, + vertical_alignment: text::VerticalAlignment, + }, + Quad { + bounds: Rectangle, + background: Background, + border_radius: u16, + }, + Image { + path: String, + bounds: Rectangle, + }, +} |