Implemented SVG support in iced_wgpu.
This commit is contained in:
parent
c1b9f66525
commit
8032428428
5 changed files with 640 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue