pub struct SvgPrimitive {
pub svg: Svg,
pub destination: Rect,
pub source_uv: Rect,
pub mask: Rect,
pub radius: f32,
pub color: Color,
pub transform: SvgTransform,
pub clip: Option<Rect>,
}Expand description
One tinted SVG mask with normalized source coordinates and a rounded content mask.
Fields§
§svg: Svg§destination: Rect§source_uv: Rect§mask: Rect§radius: f32§color: Color§transform: SvgTransform§clip: Option<Rect>Implementations§
Source§impl SvgPrimitive
impl SvgPrimitive
pub fn new(svg: Svg, destination: Rect, color: Color) -> Self
pub fn source_uv(self, source_uv: Rect) -> Self
pub fn mask(self, mask: Rect) -> Self
pub fn radius(self, radius: f32) -> Self
pub fn transform(self, transform: SvgTransform) -> Self
pub fn clip(self, clip: Rect) -> Self
Trait Implementations§
Source§impl Clone for SvgPrimitive
impl Clone for SvgPrimitive
Source§fn clone(&self) -> SvgPrimitive
fn clone(&self) -> SvgPrimitive
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SvgPrimitive
impl Debug for SvgPrimitive
Source§impl PartialEq for SvgPrimitive
impl PartialEq for SvgPrimitive
impl StructuralPartialEq for SvgPrimitive
Auto Trait Implementations§
impl !RefUnwindSafe for SvgPrimitive
impl !UnwindSafe for SvgPrimitive
impl Freeze for SvgPrimitive
impl Send for SvgPrimitive
impl Sync for SvgPrimitive
impl Unpin for SvgPrimitive
impl UnsafeUnpin for SvgPrimitive
Blanket Implementations§
impl<T> Action for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.