pub struct EffectExtensions;Expand description
Extension methods for effects.
Implementations§
Source§impl EffectExtensions
impl EffectExtensions
Sourcepub fn get_effect_output_padding(effect: Option<&dyn IEffect>) -> Thickness
pub fn get_effect_output_padding(effect: Option<&dyn IEffect>) -> Thickness
How far the output of the effect extends beyond the bounds of the content it is applied to.
Panics for an effect of an unknown kind.
Sourcepub fn to_immutable(effect: &Rc<dyn IEffect>) -> Arc<dyn IImmutableEffect> ⓘ
pub fn to_immutable(effect: &Rc<dyn IEffect>) -> Arc<dyn IImmutableEffect> ⓘ
Converts an effect to an immutable effect: the result of
IMutableEffect::to_immutable
if the effect is mutable, otherwise the effect itself.
Sourcepub fn effect_equals(
immutable: Option<&dyn IImmutableEffect>,
right: Option<&dyn IEffect>,
) -> bool
pub fn effect_equals( immutable: Option<&dyn IImmutableEffect>, right: Option<&dyn IEffect>, ) -> bool
Whether an immutable effect and another effect are both absent or structurally equal.
Auto Trait Implementations§
impl Freeze for EffectExtensions
impl RefUnwindSafe for EffectExtensions
impl Send for EffectExtensions
impl Sync for EffectExtensions
impl Unpin for EffectExtensions
impl UnsafeUnpin for EffectExtensions
impl UnwindSafe for EffectExtensions
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
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