pub struct Svg<H = Handle> {
pub handle: H,
pub color: Option<Color>,
pub rotation: Radians,
pub opacity: f32,
}
Expand description
A raster image that can be drawn.
Fields§
§handle: H
The handle of the Svg
.
color: Option<Color>
The Color
filter to be applied to the Svg
.
If some Color
is set, the whole Svg
will be
painted with it—ignoring any intrinsic colors.
This can be useful for coloring icons programmatically (e.g. with a theme).
rotation: Radians
The rotation to be applied to the image; on its center.
opacity: f32
The opacity of the Svg
.
0 means transparent. 1 means opaque.
Implementations§
Trait Implementations§
impl<H> StructuralPartialEq for Svg<H>
Auto Trait Implementations§
impl<H> Freeze for Svg<H>where
H: Freeze,
impl<H> RefUnwindSafe for Svg<H>where
H: RefUnwindSafe,
impl<H> Send for Svg<H>where
H: Send,
impl<H> Sync for Svg<H>where
H: Sync,
impl<H> Unpin for Svg<H>where
H: Unpin,
impl<H> UnwindSafe for Svg<H>where
H: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more