Draft Box primitive
This commit is contained in:
parent
5a5ca34b5f
commit
7765e6da50
4 changed files with 44 additions and 10 deletions
|
|
@ -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),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue