Implemented SVG support in iced_wgpu.

This commit is contained in:
Malte Veerman 2019-12-06 16:47:40 +01:00
parent c1b9f66525
commit 8032428428
5 changed files with 640 additions and 1 deletions

View file

@ -3,6 +3,8 @@ use iced_native::{
VerticalAlignment,
};
use crate::svg;
/// A rendering primitive.
#[derive(Debug, Clone)]
pub enum Primitive {
@ -46,6 +48,13 @@ pub enum Primitive {
/// The bounds of the image
bounds: Rectangle,
},
/// A svg icon primitive
Svg {
/// The handle of the icon
handle: svg::Handle,
/// The bounds of the icon
bounds: Rectangle,
},
/// A clip primitive
Clip {
/// The bounds of the clip