Split Fill and Stroke into their own modules
This commit is contained in:
parent
1beeaf9db5
commit
de8f06b512
3 changed files with 83 additions and 78 deletions
12
wgpu/src/widget/canvas/fill.rs
Normal file
12
wgpu/src/widget/canvas/fill.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use iced_native::Color;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum Fill {
|
||||
Color(Color),
|
||||
}
|
||||
|
||||
impl Default for Fill {
|
||||
fn default() -> Fill {
|
||||
Fill::Color(Color::BLACK)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue