Modularize iced_wgpu
This commit is contained in:
parent
ae56edc8cc
commit
5a5ca34b5f
11 changed files with 394 additions and 353 deletions
14
wgpu/src/primitive.rs
Normal file
14
wgpu/src/primitive.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use iced_native::Rectangle;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Primitive {
|
||||
None,
|
||||
Group {
|
||||
primitives: Vec<Primitive>,
|
||||
},
|
||||
Text {
|
||||
content: String,
|
||||
bounds: Rectangle,
|
||||
size: f32,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue