pub struct ShadowEffect {
pub name: String,
pub blur_amount: f32,
pub shadow_color: Color,
pub optimization: EffectOptimization,
pub source: Option<GraphicsEffectSource>,
}Expand description
The shadow of its source (Win2D ShadowEffect): the alpha of the source
in the shadow colour, blurred. Animatable: BlurAmount, ShadowColor.
Fields§
§name: StringThe name of the effect.
blur_amount: f32The standard deviation of the blur, in device independent pixels (default 1).
shadow_color: ColorThe colour of the shadow (default opaque black); its alpha scales the alpha of the source.
optimization: EffectOptimizationThe speed and quality trade-off (every setting draws the exact blur).
source: Option<GraphicsEffectSource>The input.
Trait Implementations§
Source§impl Clone for ShadowEffect
impl Clone for ShadowEffect
Source§impl Debug for ShadowEffect
impl Debug for ShadowEffect
Source§impl Default for ShadowEffect
impl Default for ShadowEffect
Source§impl From<ShadowEffect> for GraphicsEffect
impl From<ShadowEffect> for GraphicsEffect
Source§fn from(effect: ShadowEffect) -> Self
fn from(effect: ShadowEffect) -> Self
Converts to this type from the input type.
Source§impl From<ShadowEffect> for GraphicsEffectSource
impl From<ShadowEffect> for GraphicsEffectSource
Source§fn from(effect: ShadowEffect) -> Self
fn from(effect: ShadowEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ShadowEffect
impl PartialEq for ShadowEffect
impl StructuralPartialEq for ShadowEffect
Auto Trait Implementations§
impl Freeze for ShadowEffect
impl RefUnwindSafe for ShadowEffect
impl Send for ShadowEffect
impl Sync for ShadowEffect
impl Unpin for ShadowEffect
impl UnsafeUnpin for ShadowEffect
impl UnwindSafe for ShadowEffect
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more