summaryrefslogtreecommitdiffstats
path: root/wgpu/src/primitive.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-06 19:22:25 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-06 19:22:25 +0200
commit7765e6da50a3448501ee1b639e580c94a4fbda8a (patch)
treef87278ce34cb7bde4648c8303048bb51221ef1dd /wgpu/src/primitive.rs
parent5a5ca34b5fcab9266359d3f0885782969f8c058e (diff)
downloadiced-7765e6da50a3448501ee1b639e580c94a4fbda8a.tar.gz
iced-7765e6da50a3448501ee1b639e580c94a4fbda8a.tar.bz2
iced-7765e6da50a3448501ee1b639e580c94a4fbda8a.zip
Draft `Box` primitive
Diffstat (limited to 'wgpu/src/primitive.rs')
-rw-r--r--wgpu/src/primitive.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs
index 04b2e99f..e9ab100e 100644
--- a/wgpu/src/primitive.rs
+++ b/wgpu/src/primitive.rs
@@ -1,4 +1,4 @@
-use iced_native::Rectangle;
+use iced_native::{Color, Rectangle};
#[derive(Debug, Clone)]
pub enum Primitive {
@@ -11,4 +11,13 @@ pub enum Primitive {
bounds: Rectangle,
size: f32,
},
+ Box {
+ bounds: Rectangle,
+ background: Background,
+ },
+}
+
+#[derive(Debug, Clone, Copy, PartialEq)]
+pub enum Background {
+ Color(Color),
}