Trait EffectExt
pub trait EffectExt: Sized {
// Required method
fn get_effect(&mut self) -> &mut EffectData;
// Provided methods
fn effect(self, effect: EffectData) -> Self { ... }
fn overflow(self, overflow: impl Into<Overflow>) -> Self { ... }
fn blur(self, blur: impl Into<f32>) -> Self { ... }
fn rotation(self, rotation: impl Into<f32>) -> Self { ... }
fn opacity(self, opacity: impl Into<f32>) -> Self { ... }
fn scale(self, scale: impl Into<Scale>) -> Self { ... }
fn transform_origin(
self,
transform_origin: impl Into<TransformOrigin>,
) -> Self { ... }
}Required Methods§
fn get_effect(&mut self) -> &mut EffectData
Provided Methods§
fn effect(self, effect: EffectData) -> Self
fn overflow(self, overflow: impl Into<Overflow>) -> Self
fn blur(self, blur: impl Into<f32>) -> Self
fn rotation(self, rotation: impl Into<f32>) -> Self
fn opacity(self, opacity: impl Into<f32>) -> Self
fn scale(self, scale: impl Into<Scale>) -> Self
fn transform_origin(self, transform_origin: impl Into<TransformOrigin>) -> Self
fn transform_origin(self, transform_origin: impl Into<TransformOrigin>) -> Self
Set the point that the scale and rotation effects pivot around.
Defaults to the element’s center.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.