Implement Geometry2D primitive
This commit is contained in:
parent
26de688e68
commit
0d620b7701
13 changed files with 528 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use iced_native::{
|
||||
image, svg, Background, Color, Font, HorizontalAlignment, Rectangle,
|
||||
Vector, VerticalAlignment,
|
||||
Vector, VerticalAlignment, Geometry2D,
|
||||
};
|
||||
|
||||
/// A rendering primitive.
|
||||
|
|
@ -63,6 +63,11 @@ pub enum Primitive {
|
|||
/// The content of the clip
|
||||
content: Box<Primitive>,
|
||||
},
|
||||
/// A low-level geometry primitive
|
||||
Geometry2D {
|
||||
/// The vertices and indices of the geometry
|
||||
geometry: Geometry2D,
|
||||
},
|
||||
}
|
||||
|
||||
impl Default for Primitive {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue