Draft Box primitive

This commit is contained in:
Héctor Ramón Jiménez 2019-10-06 19:22:25 +02:00
parent 5a5ca34b5f
commit 7765e6da50
4 changed files with 44 additions and 10 deletions

View file

@ -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),
}