Implement Geometry2D primitive

This commit is contained in:
Artur Sapek 2020-01-01 15:44:32 -07:00
parent 26de688e68
commit 0d620b7701
13 changed files with 528 additions and 4 deletions

View file

@ -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 {